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
7fc2cca7
Commit
7fc2cca7
authored
Jan 24, 2003
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A very minimal start to a test of the shutil module.
parent
6d9f9b3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
Lib/test/test_shutil.py
Lib/test/test_shutil.py
+28
-0
No files found.
Lib/test/test_shutil.py
0 → 100644
View file @
7fc2cca7
# Copyright (C) 2003 Python Software Foundation
import
unittest
import
shutil
import
tempfile
from
test
import
test_support
class
TestShutil
(
unittest
.
TestCase
):
def
test_rmtree_errors
(
self
):
# filename is guaranteed not to exist
filename
=
tempfile
.
mktemp
()
self
.
assertRaises
(
OSError
,
shutil
.
rmtree
,
filename
)
self
.
assertEqual
(
shutil
.
rmtree
(
filename
,
True
),
None
)
def
suite
():
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
TestShutil
))
return
suite
def
test_main
():
test_support
.
run_suite
(
suite
())
if
__name__
==
'__main__'
:
unittest
.
main
(
defaultTest
=
'suite'
)
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