New issue
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
Test failures with -OO #54173
Comments
When I run the test suite (py3k branch) with -OO I get 42 failures. Most of these look like they are caused by the same (or a similar) problem (attempting to run doctests from now-non-existent docstrings). The tests that fail are: When I run with -OO I get 42 test failures. Most of them look like they are due to missing docstrings but some are likely to be due to missing asserts. 42 tests failed: Typical tracebacks (one explicitly calling doctest code, the other through test.support): Traceback (most recent call last):
File "Lib/test/test_collections.py", line 3, in <module>
import unittest, doctest, operator
File "/compile/py3k/Lib/doctest.py", line 97, in <module>
import unittest, difflib, pdb, tempfile
File "/compile/py3k/Lib/pdb.py", line 1348, in <module>
__doc__ += getattr(Pdb, 'do_' + _command).__doc__.strip() + '\n\n'
AttributeError: 'NoneType' object has no attribute 'strip'
Traceback (most recent call last):
File "Lib/test/test_code.py", line 169, in <module>
test_main()
File "Lib/test/test_code.py", line 164, in test_main
run_doctest(test_code, verbose)
File "/compile/py3k/Lib/test/support.py", line 1142, in run_doctest
import doctest
File "/compile/py3k/Lib/doctest.py", line 97, in <module>
import unittest, difflib, pdb, tempfile
File "/compile/py3k/Lib/pdb.py", line 1348, in <module>
__doc__ += getattr(Pdb, 'do_' + _command).__doc__.strip() + '\n\n'
AttributeError: 'NoneType' object has no attribute 'strip' bpo-6292 was previously closed when all tests ran successfully with -OO, so this is a more recent regression. |
Most of the failures are caused by a problem in pdb. In fact, if you run Python with -OO you can't even *import* pdb. The attached patch fixes that problem (a hasty and untested patch though), and that reduces the number of failures to 5: 5 tests failed: |
Fixed pdb issue in r85457. |
r85459 - test_dis That should be all of them. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: