summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_py3kwarn.py
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2010-06-22 09:18:28 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2010-06-22 09:18:28 (GMT)
commit934f4e1f398bb0dd712f40ecf7957327bdae33f8 (patch)
treeaef7a3a91634068202c09e0fda5d257c9e9b9cbe /Lib/test/test_py3kwarn.py
parent4f6125996d1d8b164f9b59f90b5215462ca5a0e9 (diff)
downloadcpython-934f4e1f398bb0dd712f40ecf7957327bdae33f8.zip
cpython-934f4e1f398bb0dd712f40ecf7957327bdae33f8.tar.gz
cpython-934f4e1f398bb0dd712f40ecf7957327bdae33f8.tar.bz2
Fix for issue8446:
* Don't import 'ic' in webbrowser, that module is no longer used * Remove 'MacOS' from the list of modules that should emit a Py3kWarning on import. This is needed because one of the earlier tests triggers and import of this extension, and that causes a failure in test_py3kwarn (running test_py3kwarn separately worked fine) With these changes 'make tests' no longer says that test_py3kwarn fails.
Diffstat (limited to 'Lib/test/test_py3kwarn.py')
-rw-r--r--Lib/test/test_py3kwarn.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py
index 6d3d962..32c36a9 100644
--- a/Lib/test/test_py3kwarn.py
+++ b/Lib/test/test_py3kwarn.py
@@ -323,7 +323,13 @@ class TestStdlibRemovals(unittest.TestCase):
'IOCTL', 'jpeg', 'panel', 'panelparser',
'readcd', 'SV', 'torgb', 'WAIT'),
'darwin' : ('autoGIL', 'Carbon', 'OSATerminology',
- 'icglue', 'Nav', 'MacOS', 'aepack',
+ 'icglue', 'Nav',
+ # MacOS should (and does) give a Py3kWarning, but one of the
+ # earlier tests already imports the MacOS extension which causes
+ # this test to fail. Disabling the test for 'MacOS' avoids this
+ # spurious test failure.
+ #'MacOS',
+ 'aepack',
'aetools', 'aetypes', 'applesingle',
'appletrawmain', 'appletrunner',
'argvemulator', 'bgenlocations',