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 2010年05月06日 13:48 by scott.dial, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| test_enumerate.patch | scott.dial, 2010年05月06日 13:48 | fix test cases for enumerate() with start= | ||
| Messages (5) | |||
|---|---|---|---|
| msg105147 - (view) | Author: Scott Dial (scott.dial) | Date: 2010年05月06日 13:48 | |
The issue2831 patch test cases are not actually being run by test_enumerate and they were broken tests anyways. This patch fixes the brokenness. |
|||
| msg105155 - (view) | Author: Alexander Belopolsky (belopolsky) * (Python committer) | Date: 2010年05月06日 18:32 | |
The patch looks fine, but I wonder if regrtest.py could be taught to warn about situations like this. Maybe run_unitest() should check that all leaf subclasses of TestCase in the module are covered. Ideally, of course, test_main() should be made optional and tests be discovered by analyzing the test_* module. |
|||
| msg105314 - (view) | Author: Benjamin Peterson (benjamin.peterson) * (Python committer) | Date: 2010年05月08日 16:46 | |
Fixed in r80991. Thanks for the patch. |
|||
| msg106470 - (view) | Author: Mark Dickinson (mark.dickinson) * (Python committer) | Date: 2010年05月25日 19:42 | |
It looks like there's still a bit of brokenness here: when I run test_enumerate by itself: ./python.exe Lib/test/test_enumerate.py I get the following: Traceback (most recent call last): File "Lib/test/test_enumerate.py", line 253, in <module> test_main(verbose=True) File "Lib/test/test_enumerate.py", line 248, in test_main test_support.run_unittest(*testclasses) NameError: global name 'testclasses' is not defined [76533 refs] |
|||
| msg106471 - (view) | Author: Mark Dickinson (mark.dickinson) * (Python committer) | Date: 2010年05月25日 19:48 | |
NameError fixed in r81527 through r81530. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:00 | admin | set | github: 52882 |
| 2010年06月21日 16:55:19 | eric.araujo | set | stage: patch review -> resolved |
| 2010年05月25日 19:48:48 | mark.dickinson | set | messages: + msg106471 |
| 2010年05月25日 19:42:36 | mark.dickinson | set | nosy:
+ mark.dickinson messages: + msg106470 |
| 2010年05月08日 16:46:07 | benjamin.peterson | set | status: open -> closed nosy: + benjamin.peterson messages: + msg105314 resolution: fixed |
| 2010年05月06日 18:32:12 | belopolsky | set | nosy:
+ belopolsky messages: + msg105155 stage: patch review |
| 2010年05月06日 13:48:08 | scott.dial | create | |