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
0b61d3c0
Commit
0b61d3c0
authored
Feb 11, 2013
by
R David Murray
Browse files
Options
Browse Files
Download
Plain Diff
Merge: #17064: fix sporadic permission errors in test_mailbox on windows.
Patch by Jeremy Kloth.
parents
b71b8ec7
b3e8384c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Lib/test/test_mailbox.py
Lib/test/test_mailbox.py
+8
-8
No files found.
Lib/test/test_mailbox.py
View file @
0b61d3c0
...
...
@@ -43,9 +43,9 @@ class TestBase:
def
_delete_recursively
(
self
,
target
):
# Delete a file or delete a directory recursively
if
os
.
path
.
isdir
(
target
):
s
hutil
.
rmtree
(
target
)
s
upport
.
rmtree
(
target
)
elif
os
.
path
.
exists
(
target
):
os
.
remove
(
target
)
support
.
unlink
(
target
)
class
TestMailbox
(
TestBase
):
...
...
@@ -2112,9 +2112,9 @@ class MaildirTestCase(unittest.TestCase):
# create a new maildir mailbox to work with:
self
.
_dir
=
support
.
TESTFN
if
os
.
path
.
isdir
(
self
.
_dir
):
s
hutil
.
rmtree
(
self
.
_dir
)
s
upport
.
rmtree
(
self
.
_dir
)
elif
os
.
path
.
isfile
(
self
.
_dir
):
os
.
unlink
(
self
.
_dir
)
support
.
unlink
(
self
.
_dir
)
os
.
mkdir
(
self
.
_dir
)
os
.
mkdir
(
os
.
path
.
join
(
self
.
_dir
,
"cur"
))
os
.
mkdir
(
os
.
path
.
join
(
self
.
_dir
,
"tmp"
))
...
...
@@ -2124,10 +2124,10 @@ class MaildirTestCase(unittest.TestCase):
def
tearDown
(
self
):
list
(
map
(
os
.
unlink
,
self
.
_msgfiles
))
os
.
rmdir
(
os
.
path
.
join
(
self
.
_dir
,
"cur"
))
os
.
rmdir
(
os
.
path
.
join
(
self
.
_dir
,
"tmp"
))
os
.
rmdir
(
os
.
path
.
join
(
self
.
_dir
,
"new"
))
os
.
rmdir
(
self
.
_dir
)
support
.
rmdir
(
os
.
path
.
join
(
self
.
_dir
,
"cur"
))
support
.
rmdir
(
os
.
path
.
join
(
self
.
_dir
,
"tmp"
))
support
.
rmdir
(
os
.
path
.
join
(
self
.
_dir
,
"new"
))
support
.
rmdir
(
self
.
_dir
)
def
createMessage
(
self
,
dir
,
mbox
=
False
):
t
=
int
(
time
.
time
()
%
1000000
)
...
...
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