Commit 1df21e7e authored by Ezio Melotti's avatar Ezio Melotti

Run test_py3kwarn first to avoid failures with -3.

parent c1ef2fa4
...@@ -483,6 +483,13 @@ STDTESTS = [ ...@@ -483,6 +483,13 @@ STDTESTS = [
'test_unittest', 'test_unittest',
'test_doctest', 'test_doctest',
'test_doctest2', '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 = [ NOTTESTS = [
......
...@@ -3,10 +3,7 @@ ...@@ -3,10 +3,7 @@
Roger E. Masse revised strategy by Barry Warsaw Roger E. Masse revised strategy by Barry Warsaw
""" """
from test.test_support import verbose,TestSkipped, import_module from test.test_support import verbose,TestSkipped, import_module
import warnings
warnings.simplefilter('always')
dl = import_module('dl', deprecated=True) dl = import_module('dl', deprecated=True)
warnings.resetwarnings()
sharedlibs = [ sharedlibs = [
('/usr/lib/libc.so', 'getpid'), ('/usr/lib/libc.so', 'getpid'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment