Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Python 3.9 test failures #809

Copy link
Copy link
@mgorny

Description

@mgorny
Issue body actions

A few tests fail on Python 3.9.0b1:

======================================================================
ERROR: test_nonsense (bpython.test.test_simpleeval.TestEvaluateCurrentExpression)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/bpython/bpython/simpleeval.py", line 230, in evaluate_current_expression
    return simple_eval(largest_ast, namespace)
  File "/tmp/bpython/bpython/simpleeval.py", line 167, in simple_eval
    return _convert(node_or_string)
  File "/tmp/bpython/bpython/simpleeval.py", line 165, in _convert
    raise ValueError("malformed string")
ValueError: malformed string

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/bpython/bpython/test/test_simpleeval.py", line 129, in test_nonsense
    self.assertEvaled("--- [2][0].a|bc", 2)
  File "/tmp/bpython/bpython/test/test_simpleeval.py", line 107, in assertEvaled
    evaluate_current_expression(cursor_offset, line, ns), value
  File "/tmp/bpython/bpython/simpleeval.py", line 232, in evaluate_current_expression
    raise EvaluationError("Could not safely evaluate")
bpython.simpleeval.EvaluationError: Could not safely evaluate

======================================================================
ERROR: test_with_namespace (bpython.test.test_simpleeval.TestEvaluateCurrentExpression)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/bpython/bpython/simpleeval.py", line 230, in evaluate_current_expression
    return simple_eval(largest_ast, namespace)
  File "/tmp/bpython/bpython/simpleeval.py", line 167, in simple_eval
    return _convert(node_or_string)
  File "/tmp/bpython/bpython/simpleeval.py", line 165, in _convert
    raise ValueError("malformed string")
ValueError: malformed string

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/bpython/bpython/test/test_simpleeval.py", line 134, in test_with_namespace
    self.assertEvaled("a[1].a|bc", "d", {"a": "adsf"})
  File "/tmp/bpython/bpython/test/test_simpleeval.py", line 107, in assertEvaled
    evaluate_current_expression(cursor_offset, line, ns), value
  File "/tmp/bpython/bpython/simpleeval.py", line 232, in evaluate_current_expression
    raise EvaluationError("Could not safely evaluate")
bpython.simpleeval.EvaluationError: Could not safely evaluate

======================================================================
ERROR: Literals can be indexed into
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/bpython/bpython/test/test_simpleeval.py", line 28, in test_indexing
    self.assertEqual(simple_eval("[1,2][0]"), 1)
  File "/tmp/bpython/bpython/simpleeval.py", line 167, in simple_eval
    return _convert(node_or_string)
  File "/tmp/bpython/bpython/simpleeval.py", line 165, in _convert
    raise ValueError("malformed string")
ValueError: malformed string

======================================================================
ERROR: Names can be lookup up in a namespace
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/bpython/bpython/test/test_simpleeval.py", line 35, in test_name_lookup
    self.assertEqual(simple_eval("a[b]", {"a": {"c": 1}, "b": "c"}), 1)
  File "/tmp/bpython/bpython/simpleeval.py", line 167, in simple_eval
    return _convert(node_or_string)
  File "/tmp/bpython/bpython/simpleeval.py", line 165, in _convert
    raise ValueError("malformed string")
ValueError: malformed string

======================================================================
FAIL: test_att_matches_found_on_instance (bpython.test.test_autocomplete.TestExpressionAttributeCompletion)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/bpython/bpython/test/test_autocomplete.py", line 316, in test_att_matches_found_on_instance
    self.assertSetEqual(
AssertionError: Items in the second set but not the first:
'method'
'a'
'b'

======================================================================
FAIL: test_dictionaries_complete (bpython.test.test_autocomplete.TestExpressionAttributeCompletion)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/bpython/bpython/test/test_autocomplete.py", line 365, in test_dictionaries_complete
    self.assertSetEqual(
AssertionError: Items in the second set but not the first:
'method'
'a'
'b'

======================================================================
FAIL: test_literals_complete (bpython.test.test_autocomplete.TestExpressionAttributeCompletion)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/bpython/bpython/test/test_autocomplete.py", line 359, in test_literals_complete
    self.assertSetEqual(
AssertionError: Items in the second set but not the first:
'method'
'a'
'b'

======================================================================
FAIL: test_tuples_complete (bpython.test.test_autocomplete.TestExpressionAttributeCompletion)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/bpython/bpython/test/test_autocomplete.py", line 336, in test_tuples_complete
    self.assertSetEqual(
AssertionError: Items in the second set but not the first:
'method'
'a'
'b'

----------------------------------------------------------------------
Ran 329 tests in 12.934s

FAILED (SKIP=27, errors=4, failures=4)
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.