8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_inspect
-OO
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
====================================================================== FAIL: test_class_inside_conditional (test.test_inspect.test_inspect.TestBuggyCases.test_class_inside_conditional) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/sobolev/Desktop/cpython2/Lib/test/test_inspect/test_inspect.py", line 995, in test_class_inside_conditional self.assertSourceEqual(mod2.cls238.cls239, 239, 240) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/sobolev/Desktop/cpython2/Lib/test/test_inspect/test_inspect.py", line 550, in assertSourceEqual self.assertEqual(inspect.getsource(obj), ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ self.sourcerange(top, bottom)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: " class cls239:\n '''else clause 239'''\n pass\n" != " class cls239:\n '''if clause cls239'''\n" class cls239: - '''else clause 239''' ? ^^^^ + '''if clause cls239''' ? ^^ +++ - pass ====================================================================== FAIL: test_base_class_have_text_signature (test.test_inspect.test_inspect.TestSignatureDefinitions.test_base_class_have_text_signature) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/sobolev/Desktop/cpython2/Lib/test/test_inspect/test_inspect.py", line 5315, in test_base_class_have_text_signature self.assertEqual(text_signature, '(raw, buffer_size=DEFAULT_BUFFER_SIZE)') ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: None != '(raw, buffer_size=DEFAULT_BUFFER_SIZE)' ---------------------------------------------------------------------- Ran 297 tests in 0.536s
I will send a PR.
The text was updated successfully, but these errors were encountered:
pythongh-116780: Fix test_inspect in -OO mode
49e2c76
gh-116780: Fix test_inspect in -OO mode (#116788)
f20dfb7
[3.12] pythongh-116780: Fix test_inspect in -OO mode (pythonGH-11…
303c3db
…6788)
[3.12] gh-116780: Fix test_inspect in -OO mode (GH-116788) (#116799)
2dbc77e
pythongh-116780: Fix test_inspect in -OO mode (python#116788)
e9cdbfc
430442e
2227362
sobolevn
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Bug report
I will send a PR.
Linked PRs
test_inspect
in-OO
mode #116788test_inspect
in-OO
mode (GH-116788) #116799The text was updated successfully, but these errors were encountered: