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
2485abfa
Commit
2485abfa
authored
Dec 07, 2013
by
Eric Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19758: silence PendingDeprecationWarnings in test_importlib.
parent
1cc849c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
Lib/test/test_importlib/test_spec.py
Lib/test/test_importlib/test_spec.py
+8
-4
No files found.
Lib/test/test_importlib/test_spec.py
View file @
2485abfa
...
...
@@ -10,6 +10,7 @@ import os.path
from
test.support
import
CleanImport
import
unittest
import
sys
import
warnings
...
...
@@ -55,10 +56,13 @@ class LegacyLoader(TestLoader):
HAM
=
-
1
@
frozen_util
.
module_for_loader
def
load_module
(
self
,
module
):
module
.
ham
=
self
.
HAM
return
module
with
warnings
.
catch_warnings
():
warnings
.
simplefilter
(
"ignore"
,
PendingDeprecationWarning
)
@
frozen_util
.
module_for_loader
def
load_module
(
self
,
module
):
module
.
ham
=
self
.
HAM
return
module
class
ModuleSpecTests
:
...
...
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