Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Python 3.9 test failures #809

Closed
Closed
@mgorny

Description

@mgorny

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", line230, inevaluate_current_expressionreturn simple_eval(largest_ast, namespace)  File"/tmp/bpython/bpython/simpleeval.py", line167, insimple_evalreturn _convert(node_or_string)  File"/tmp/bpython/bpython/simpleeval.py", line165, in_convertraiseValueError("malformed string")ValueError:malformed stringDuring handling of the above exception, another exception occurred:Traceback (most recent call last):  File"/tmp/bpython/bpython/test/test_simpleeval.py", line129, intest_nonsenseself.assertEvaled("--- [2][0].a|bc",2)  File"/tmp/bpython/bpython/test/test_simpleeval.py", line107, inassertEvaled    evaluate_current_expression(cursor_offset, line, ns), value  File"/tmp/bpython/bpython/simpleeval.py", line232, inevaluate_current_expressionraise 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", line230, inevaluate_current_expressionreturn simple_eval(largest_ast, namespace)  File"/tmp/bpython/bpython/simpleeval.py", line167, insimple_evalreturn _convert(node_or_string)  File"/tmp/bpython/bpython/simpleeval.py", line165, in_convertraiseValueError("malformed string")ValueError:malformed stringDuring handling of the above exception, another exception occurred:Traceback (most recent call last):  File"/tmp/bpython/bpython/test/test_simpleeval.py", line134, intest_with_namespaceself.assertEvaled("a[1].a|bc","d", {"a":"adsf"})  File"/tmp/bpython/bpython/test/test_simpleeval.py", line107, inassertEvaled    evaluate_current_expression(cursor_offset, line, ns), value  File"/tmp/bpython/bpython/simpleeval.py", line232, inevaluate_current_expressionraise 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", line28, intest_indexingself.assertEqual(simple_eval("[1,2][0]"),1)  File"/tmp/bpython/bpython/simpleeval.py", line167, insimple_evalreturn _convert(node_or_string)  File"/tmp/bpython/bpython/simpleeval.py", line165, in_convertraiseValueError("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", line35, intest_name_lookupself.assertEqual(simple_eval("a[b]", {"a": {"c":1},"b":"c"}),1)  File"/tmp/bpython/bpython/simpleeval.py", line167, insimple_evalreturn _convert(node_or_string)  File"/tmp/bpython/bpython/simpleeval.py", line165, in_convertraiseValueError("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", line316, intest_att_matches_found_on_instanceself.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", line365, intest_dictionaries_completeself.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", line359, intest_literals_completeself.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", line336, intest_tuples_completeself.assertSetEqual(AssertionError:Items in the second set but not the first:'method''a''b'----------------------------------------------------------------------Ran 329 tests in 12.934sFAILED (SKIP=27, errors=4, failures=4)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp