summaryrefslogtreecommitdiff
path: root/Lib/test/regrtest.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-08-03 19:43:08 +0000
committerEzio Melotti <ezio.melotti@gmail.com>2010-08-03 19:43:08 +0000
commit1df21e7e03f53f51a00431ea98e9592fbf2bda15 (patch)
treee27d8d492ba07c55db954c7add7e9595a6f38036 /Lib/test/regrtest.py
parentc1ef2fa45f80d2f2573c186bc2d54c89ea20f669 (diff)
downloadcpython-git-1df21e7e03f53f51a00431ea98e9592fbf2bda15.tar.gz
Run test_py3kwarn first to avoid failures with -3.
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-xLib/test/regrtest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 2177b66e1a..920d545c5d 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -483,6 +483,13 @@ STDTESTS = [
'test_unittest',
'test_doctest',
'test_doctest2',
+ # On 2.6, when a C module like dl or linuxaudiodev is imported by some
+ # test, a DeprecationWarning is raised, but test_py3kwarn can not find
+ # it in the __warningregistry__ of the modules in sys.modules.
+ # C modules raise the warning only once, and since there's no way to
+ # find these warnings, test_py3kwarn is executed first to catch them
+ # before the other modules. This shouldn't affect 2.7+
+ 'test_py3kwarn',
]
NOTTESTS = [