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
d60e92a4
Commit
d60e92a4
authored
Sep 11, 2004
by
Johannes Gijsbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document not-completely-obvious behavior in a test.
parent
6ab4b99f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
Lib/test/test_shutil.py
Lib/test/test_shutil.py
+7
-0
No files found.
Lib/test/test_shutil.py
View file @
d60e92a4
...
...
@@ -16,6 +16,13 @@ class TestShutil(unittest.TestCase):
self
.
assertEqual
(
shutil
.
rmtree
(
filename
,
True
),
None
)
shutil
.
rmtree
(
filename
,
False
,
lambda
func
,
arg
,
exc
:
None
)
def
test_rmtree_dont_delete_file
(
self
):
# When called on a file instead of a directory, don't delete it.
handle
,
path
=
tempfile
.
mkstemp
()
os
.
fdopen
(
handle
).
close
()
self
.
assertRaises
(
OSError
,
shutil
.
rmtree
,
path
)
os
.
remove
(
path
)
def
test_dont_move_dir_in_itself
(
self
):
src_dir
=
tempfile
.
mkdtemp
()
try
:
...
...
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