Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1df21e7e
Commit
1df21e7e
authored
Aug 03, 2010
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run test_py3kwarn first to avoid failures with -3.
parent
c1ef2fa4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
Lib/test/regrtest.py
Lib/test/regrtest.py
+7
-0
Lib/test/test_dl.py
Lib/test/test_dl.py
+0
-3
No files found.
Lib/test/regrtest.py
View file @
1df21e7e
...
...
@@ -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
=
[
...
...
Lib/test/test_dl.py
View file @
1df21e7e
...
...
@@ -3,10 +3,7 @@
Roger E. Masse revised strategy by Barry Warsaw
"""
from
test.test_support
import
verbose
,
TestSkipped
,
import_module
import
warnings
warnings
.
simplefilter
(
'always'
)
dl
=
import_module
(
'dl'
,
deprecated
=
True
)
warnings
.
resetwarnings
()
sharedlibs
=
[
(
'/usr/lib/libc.so'
,
'getpid'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment