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
Increase test coverage for timeit.py #55787
Comments
The timeit.py module has no specific tests. The attached patch adds |
New changeset 628a3679dc14 by R David Murray in branch '3.2': New changeset 2f443a200b8c by R David Murray in branch 'default': |
We commented out a few of the tests because they took too long to run due to the large default loop count. timeit would have to be further modified to support testing the default, which probably isn't worth it. |
Issue bpo-5633 contains two additional unit tests that can't be added until |
Is there no resource (in the regrtest machinery) that could be used to flag those intensive tests? Nit: the NEWS entry lacks a “by”. |
New changeset 7e7c825f75ad by Serhiy Storchaka in branch '2.7': |
7e7c825f75ad832d973542bfcf9ecd6e5dd3f981 broke koobs-freebsd9 and koobs-freebsd10, with: ====================================================================== Traceback (most recent call last):
File "/usr/home/buildbot/python/2.7.koobs-freebsd9/build/Lib/test/test_timeit.py", line 300, in test_main_exception
self.assert_exc_string(error_stringio.getvalue(), 'ZeroDivisionError')
File "/usr/home/buildbot/python/2.7.koobs-freebsd9/build/Lib/test/test_timeit.py", line 195, in assert_exc_string
self.assertTrue(exc_lines[0].startswith('Traceback'))
AssertionError: False is not true |
I think all 2.7 bots are broken. :) |
New changeset aa6f8e067ec3 by Serhiy Storchaka in branch '2.7': |
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: