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年01月24日 18:42 by flox, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue7772_py3kwarn.diff | flox, 2010年01月24日 18:51 | Patch, apply to trunk | ||
| Messages (6) | |||
|---|---|---|---|
| msg98244 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年01月24日 18:42 | |
"test_py3kwarn" fails when running the whole test suite This is a known behaviour, because of extension modules loaded by previous tests (which cannot be "reloaded"). However, the warnings module store all the warnings when they appear in a dictionary attribute attached to the module which does the "import". We may read this dictionary attribute for the purpose of this test. |
|||
| msg98245 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年01月24日 18:51 | |
Here comes the patch: - use test_support.__warningregistry__ to check past warnings - filter the warnings with "(module|package)", to be sure that they are silenced by "test_support.import_module" - fix test_reduce_move (it failed when run after test_unittest) Note: - it requires that all "deprecated" imports are filtered through the "test_support.import_module" function (issue #7092) |
|||
| msg100740 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年03月09日 20:09 | |
Fixed with r78815. Issue #7092 should silence py3k warnings (soon). Next step is to activate "-3" on some buildbot. |
|||
| msg102289 - (view) | Author: Mark Dickinson (mark.dickinson) * (Python committer) | Date: 2010年04月03日 19:03 | |
This still seems to be an issue for OS X. With the current trunk (r79716), I get: Mark-Dickinsons-MacBook-Pro:trunk dickinsm$ ./python.exe -3 ./Lib/test/regrtest.py test_macostools test_py3kwarn test_macostools /Users/dickinsm/python/svn/trunk/Lib/importlib/__init__.py:37: DeprecationWarning: In 3.x, the MacOS module is removed. __import__(name) /Users/dickinsm/python/svn/trunk/Lib/test/test_macostools.py:10: DeprecationWarning: In 3.x, the Carbon package is removed. import Carbon.File /Users/dickinsm/python/svn/trunk/Lib/test/test_macostools.py:11: DeprecationWarning: In 3.x, the macostools module is removed. import macostools test_py3kwarn test test_py3kwarn failed -- Traceback (most recent call last): File "/Users/dickinsm/python/svn/trunk/Lib/test/test_py3kwarn.py", line 387, in test_platform_specific_removals self.check_removal(module_name, optional=True) File "/Users/dickinsm/python/svn/trunk/Lib/test/test_py3kwarn.py", line 376, in check_removal .format(module_name)) AssertionError: DeprecationWarning not raised for MacOS 1 test OK. 1 test failed: test_py3kwarn [40996 refs] |
|||
| msg102442 - (view) | Author: Mark Dickinson (mark.dickinson) * (Python committer) | Date: 2010年04月06日 09:24 | |
I very much appreciate flox's efforts here, but IMO we really need some more robust solution to the problem of (testing + global warning state). See also issue 4180. |
|||
| msg113323 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年08月08日 21:15 | |
Fixed with r82149. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:56 | admin | set | github: 52020 |
| 2010年08月08日 21:15:30 | flox | set | status: open -> closed dependencies: + buildbot: DeprecationWarning not raised for icglue (test_py3kwarn.TestStdlibRemovals) messages: + msg113323 |
| 2010年04月06日 09:24:18 | mark.dickinson | set | messages: + msg102442 |
| 2010年04月03日 19:03:48 | mark.dickinson | set | status: closed -> open nosy: + mark.dickinson messages: + msg102289 |
| 2010年03月09日 20:09:40 | flox | set | status: open -> closed priority: normal dependencies: - Test suite emits many DeprecationWarnings when -3 is enabled assignee: flox versions: - Python 2.6 resolution: fixed messages: + msg100740 stage: patch review -> resolved |
| 2010年01月24日 19:28:48 | flox | set | nosy:
+ ncoghlan |
| 2010年01月24日 18:51:10 | flox | set | files:
+ issue7772_py3kwarn.diff messages: + msg98245 dependencies: + Test suite emits many DeprecationWarnings when -3 is enabled keywords: + patch stage: patch review |
| 2010年01月24日 18:42:25 | flox | create | |