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
regrtest.py -R not working #46476
Comments
Sorry, I don't have patch, but regrtest.py -R not working now. E:\python-dev\trunk\Lib\test>py25 regrtest.py -R :: E:\python-dev\trunk\Lib\test>py regrtest.py -R :: E:\python-dev\trunk\Lib\test>py3k regrtest.py -R :: |
Sorry, I was stupid. I ran test in wrong directory. test_grammar |
I'm going to work on the issue later |
It looks like you are running regrtest from the trunk with the py3k Works for me. |
Yes, I did mistake first, but py3k fails even in correct directory. E:\python-dev\py3k\Lib\test>py3k --version E:\python-dev\py3k\Lib\test>py3k regrtest.py -R :: test_os.py abc._Abstract seems to be gone at r61098, but regrtest.py still |
attached simple patch seems to fix the problem but should be reviewed by |
It seems r61204 has fixed the bug. Can you test it on your machine |
Running on a 4-core Opteron (2.6GHz). Should complete in an hour or so ... |
test_collections fails (with -R :: only). Does not look like something $ ./python Lib/test/regrtest.py -R :: test_collections
test_collections
beginning 9 repetitions
123456789
test test_collections failed -- Traceback (most recent call last):
File "Lib/doctest.py", line 2131, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for collections.namedtuple
File "Lib/collections.py", line 13, in namedtuple .. |
Here are the results from regrtest.py -R :: .. Do buildbots run -R regressions? |
I can see test_collections.py failure even on r61203 E:\python-dev\trunk\Lib\test>py regrtest.py -R :: test_collections.py
test_collections
beginning 9 repetitions
123456789
test test_collections failed -- Traceback (most recent call last):
File "e:\python-dev\trunk\lib\doctest.py", line 2131, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for collections.namedtuple
File "e:\python-dev\trunk\lib\collections.py", line 13, in namedtuple
----------------------------------------------------------------------
File "e:\python-dev\trunk\lib\collections.py", line 16, in
collections.namedtupl
e
Failed example:
Point = namedtuple('Point', 'x y')
Exception raised:
Traceback (most recent call last):
File "e:\python-dev\trunk\lib\doctest.py", line 1231, in __run
compileflags, 1) in test.globs
File "<doctest collections.namedtuple[0]>", line 1, in <module>
Point = namedtuple('Point', 'x y')
NameError: name 'namedtuple' is not defined
(snip) I'll run py regrtest.py -R :: on r61203 - r61098 and compare its |
Sorry, I abandoned this at test_compiler. Please forget this sentense... Anyway, Christian's fix greatly works for me. Thanks!
For this error, I could write a minimam code to reproduce it. |
I wrote simple patch to workaround this problem. # To my eyes, doctest.DocTestSuite(module=collections) |
I did more investigation. I don't know if this is bug or not. Document in |
No known issues with "regrtest -R :" on trunk. |
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: