This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2008年03月03日 16:27 by ocean-city, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| regrtest.patch | belopolsky, 2008年03月03日 18:55 | diff against revision 61203 | ||
| doctest_twice.zip | ocean-city, 2008年03月04日 09:03 | |||
| fix_test_collections.patch | ocean-city, 2008年03月04日 10:39 | |||
| Messages (15) | |||
|---|---|---|---|
| msg63215 - (view) | Author: Hirokazu Yamamoto (ocean-city) * (Python committer) | Date: 2008年03月03日 16:27 | |
Sorry, I don't have patch, but regrtest.py -R not working now. E:\python-dev\trunk\Lib\test>py25 regrtest.py -R :: test_grammar test_grammar skipped -- No module named _abcoll E:\python-dev\trunk\Lib\test>py regrtest.py -R :: test_grammar test_grammar skipped -- cannot import name _Abstract E:\python-dev\trunk\Lib\test>py3k regrtest.py -R :: File "regrtest.py", line 174 print __doc__ ^ SyntaxError: invalid syntax |
|||
| msg63220 - (view) | Author: Hirokazu Yamamoto (ocean-city) * (Python committer) | Date: 2008年03月03日 17:50 | |
Sorry, I was stupid. I ran test in wrong directory. release25-maint runs fine, and other two has same error. test_grammar test_grammar skipped -- cannot import name _Abstract |
|||
| msg63221 - (view) | Author: Christian Heimes (christian.heimes) * (Python committer) | Date: 2008年03月03日 17:53 | |
I'm going to work on the issue later |
|||
| msg63222 - (view) | Author: Alexander Belopolsky (belopolsky) * (Python committer) | Date: 2008年03月03日 18:03 | |
It looks like you are running regrtest from the trunk with the py3k interpretor. Works for me. |
|||
| msg63223 - (view) | Author: Hirokazu Yamamoto (ocean-city) * (Python committer) | Date: 2008年03月03日 18:17 | |
Yes, I did mistake first, but py3k fails even in correct directory. E:\python-dev\py3k\Lib\test>py3k --version Python 3.0a3+ E:\python-dev\py3k\Lib\test>py3k regrtest.py -R :: test_os.py test_os test_os skipped -- cannot import name _Abstract 1 test skipped: test_os 1 skip unexpected on win32: test_os [43267 refs] abc._Abstract seems to be gone at r61098, but regrtest.py still references to it. |
|||
| msg63225 - (view) | Author: Alexander Belopolsky (belopolsky) * (Python committer) | Date: 2008年03月03日 18:55 | |
attached simple patch seems to fix the problem but should be reviewed by Christian. |
|||
| msg63227 - (view) | Author: Christian Heimes (christian.heimes) * (Python committer) | Date: 2008年03月03日 19:23 | |
It seems r61204 has fixed the bug. Can you test it on your machine please? My old laptop is too slow. |
|||
| msg63228 - (view) | Author: Alexander Belopolsky (belopolsky) * (Python committer) | Date: 2008年03月03日 19:56 | |
> Can you test it on your machine please? Running on a 4-core Opteron (2.6GHz). Should complete in an hour or so ... |
|||
| msg63229 - (view) | Author: Alexander Belopolsky (belopolsky) * (Python committer) | Date: 2008年03月03日 20:02 | |
test_collections fails (with -R :: only). Does not look like something related to the recent changes, rather test is not happy about being repeated. $ ./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 .. |
|||
| msg63231 - (view) | Author: Alexander Belopolsky (belopolsky) * (Python committer) | Date: 2008年03月03日 20:59 | |
Here are the results from regrtest.py -R :: .. 301 tests OK. 7 tests failed: test_collections test_cprofile test_frozen test_inspect test_logging test_pkg test_profile .. $ cat reflog.txt test_cmd_line leaked [-23, 0, 0, 23] references, sum=0 test_compiler leaked [0, 0, 18, 0] references, sum=18 test_deque leaked [100, 100, 100, 100] references, sum=400 test_ftplib leaked [0, 172, -6, -166] references, sum=0 test_heapq leaked [108, 130, 121, 114] references, sum=473 test_itertools leaked [7380, 7380, 7380, 7380] references, sum=29520 test_list leaked [50, 50, 50, 50] references, sum=200 test_set leaked [680, 680, 680, 680] references, sum=2720 test_smtplib leaked [0, 0, -86, 86] references, sum=0 test_threading leaked [0, 86, -86, 86] references, sum=86 test_urllib2_localnet leaked [3, 3, 3, 3] references, sum=12 test_userlist leaked [50, 50, 50, 50] references, sum=200 Do buildbots run -R regressions? |
|||
| msg63244 - (view) | Author: Hirokazu Yamamoto (ocean-city) * (Python committer) | Date: 2008年03月04日 04:27 | |
I can see test_collections.py failure even on r61203 (just before Christian's commit) - r61098 (removed abc._Abstract) 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 result to Alexander's result, but my machine is damn slow, probably it'll take long time. |
|||
| msg63248 - (view) | Author: Hirokazu Yamamoto (ocean-city) * (Python committer) | Date: 2008年03月04日 09:03 | |
>I'll run py regrtest.py -R :: on r61203 - r61098 and compare its >result to Alexander's result, but my machine is damn slow, probably >it'll take long time. Sorry, I abandoned this at test_compiler. Please forget this sentense... Anyway, Christian's fix greatly works for me. Thanks! >E:\python-dev\trunk\Lib\test>py regrtest.py -R :: test_collections.py For this error, I could write a minimam code to reproduce it. Please expand the attached zip file into lib/test and run a.py. You'll see similar error. |
|||
| msg63250 - (view) | Author: Hirokazu Yamamoto (ocean-city) * (Python committer) | Date: 2008年03月04日 10:39 | |
I wrote simple patch to workaround this problem. (avoid to reuse DocTestSuite) # To my eyes, doctest.DocTestSuite(module=collections) # and test_support.run_doctest(collections, verbose) # are doing same test??? |
|||
| msg63275 - (view) | Author: Hirokazu Yamamoto (ocean-city) * (Python committer) | Date: 2008年03月05日 06:15 | |
I did more investigation. Failure on second DocTestSuite run happens because lib/doctest.py (2107) test.globs.clear() is executed after first test runs. I don't know if this is bug or not. Document in doctest.py says test.globs will be untouched on failure but become empty on success, but this behavior prevents reusage of DocTestSuite. |
|||
| msg101495 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年03月22日 12:00 | |
No known issues with "regrtest -R :" on trunk. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:31 | admin | set | github: 46476 |
| 2010年03月22日 12:00:36 | flox | set | status: open -> closed nosy: + flox messages: + msg101495 resolution: out of date stage: patch review -> resolved |
| 2009年04月28日 00:14:12 | ajaksu2 | set | nosy:
+ michael.foord stage: patch review |
| 2008年12月05日 09:59:01 | georg.brandl | link | issue2447 superseder |
| 2008年03月17日 21:34:40 | rhettinger | set | assignee: rhettinger -> |
| 2008年03月05日 06:15:27 | ocean-city | set | messages: + msg63275 |
| 2008年03月04日 16:27:20 | rhettinger | set | assignee: rhettinger nosy: + rhettinger |
| 2008年03月04日 10:39:30 | ocean-city | set | files:
+ fix_test_collections.patch messages: + msg63250 |
| 2008年03月04日 09:03:05 | ocean-city | set | files:
+ doctest_twice.zip messages: + msg63248 |
| 2008年03月04日 04:27:16 | ocean-city | set | messages: + msg63244 |
| 2008年03月03日 20:59:45 | belopolsky | set | messages: + msg63231 |
| 2008年03月03日 20:02:10 | belopolsky | set | messages: + msg63229 |
| 2008年03月03日 19:56:40 | belopolsky | set | messages: + msg63228 |
| 2008年03月03日 19:23:31 | christian.heimes | set | messages: + msg63227 |
| 2008年03月03日 18:55:03 | belopolsky | set | files:
+ regrtest.patch keywords: + patch messages: + msg63225 |
| 2008年03月03日 18:17:20 | ocean-city | set | messages: + msg63223 |
| 2008年03月03日 18:03:01 | belopolsky | set | nosy:
+ belopolsky messages: + msg63222 |
| 2008年03月03日 17:53:33 | christian.heimes | set | priority: high nosy: + christian.heimes messages: + msg63221 |
| 2008年03月03日 17:50:02 | ocean-city | set | messages:
+ msg63220 versions: - Python 2.5 |
| 2008年03月03日 16:27:08 | ocean-city | create | |