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
c8d502ea
Commit
c8d502ea
authored
Mar 20, 2010
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the warnings usage in test_posix.
parent
d3791ed4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Lib/test/test_posix.py
Lib/test/test_posix.py
+5
-2
No files found.
Lib/test/test_posix.py
View file @
c8d502ea
...
...
@@ -13,8 +13,6 @@ import shutil
import
unittest
import
warnings
warnings
.
filterwarnings
(
'ignore'
,
'.* potential security risk .*'
,
RuntimeWarning
)
class
PosixTester
(
unittest
.
TestCase
):
...
...
@@ -22,9 +20,14 @@ class PosixTester(unittest.TestCase):
# create empty file
fp
=
open
(
support
.
TESTFN
,
'w+'
)
fp
.
close
()
self
.
_warnings_manager
=
support
.
check_warnings
()
self
.
_warnings_manager
.
__enter__
()
warnings
.
filterwarnings
(
'ignore'
,
'.* potential security risk .*'
,
RuntimeWarning
)
def
tearDown
(
self
):
support
.
unlink
(
support
.
TESTFN
)
self
.
_warnings_manager
.
__exit__
(
None
,
None
,
None
)
def
testNoArgFunctions
(
self
):
# test posix functions which take no arguments and have
...
...
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