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
b57b0940
Commit
b57b0940
authored
Dec 10, 2012
by
Hynek Schlawack
Browse files
Options
Browse Files
Download
Plain Diff
#15872: Fix shutil.rmtree error tests for Windows
parents
b550110f
9e8ac56e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Lib/test/test_shutil.py
Lib/test/test_shutil.py
+5
-1
No files found.
Lib/test/test_shutil.py
View file @
b57b0940
...
@@ -171,7 +171,11 @@ class TestShutil(unittest.TestCase):
...
@@ -171,7 +171,11 @@ class TestShutil(unittest.TestCase):
filename
=
os
.
path
.
join
(
tmpdir
,
"tstfile"
)
filename
=
os
.
path
.
join
(
tmpdir
,
"tstfile"
)
with
self
.
assertRaises
(
NotADirectoryError
)
as
cm
:
with
self
.
assertRaises
(
NotADirectoryError
)
as
cm
:
shutil
.
rmtree
(
filename
)
shutil
.
rmtree
(
filename
)
self
.
assertEqual
(
cm
.
exception
.
filename
,
filename
)
if
os
.
name
==
'nt'
:
rm_name
=
os
.
path
.
join
(
filename
,
'*.*'
)
else
:
rm_name
=
filename
self
.
assertEqual
(
cm
.
exception
.
filename
,
rm_name
)
self
.
assertTrue
(
os
.
path
.
exists
(
filename
))
self
.
assertTrue
(
os
.
path
.
exists
(
filename
))
# test that ignore_errors option is honored
# test that ignore_errors option is honored
shutil
.
rmtree
(
filename
,
ignore_errors
=
True
)
shutil
.
rmtree
(
filename
,
ignore_errors
=
True
)
...
...
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