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
d4ad8fd1
Commit
d4ad8fd1
authored
Oct 05, 2014
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup test_posix
parent
e3fef57e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
Lib/test/test_posix.py
Lib/test/test_posix.py
+10
-9
No files found.
Lib/test/test_posix.py
View file @
d4ad8fd1
...
...
@@ -1127,16 +1127,17 @@ class PosixTester(unittest.TestCase):
"""
for
name
in
(
"rename"
,
"replace"
,
"link"
):
function
=
getattr
(
os
,
name
,
None
)
if
function
is
None
:
continue
if
function
:
for
dst
in
(
"noodly2"
,
support
.
TESTFN
):
try
:
function
(
'doesnotexistfilename'
,
dst
)
except
OSError
as
e
:
self
.
assertIn
(
"'doesnotexistfilename' -> '{}'"
.
format
(
dst
),
str
(
e
))
break
else
:
self
.
fail
(
"No valid path_error2() test for os."
+
name
)
for
dst
in
(
"noodly2"
,
support
.
TESTFN
):
try
:
function
(
'doesnotexistfilename'
,
dst
)
except
OSError
as
e
:
self
.
assertIn
(
"'doesnotexistfilename' -> '{}'"
.
format
(
dst
),
str
(
e
))
break
else
:
self
.
fail
(
"No valid path_error2() test for os."
+
name
)
class
PosixGroupsTester
(
unittest
.
TestCase
):
...
...
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