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
304e542c
Commit
304e542c
authored
Aug 07, 2014
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #20056: Fixed deprecation warning about bytes path in test_shutil on
Windows. Path by Vajrasky Kok.
parents
dd50b0aa
41ad77c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Lib/test/test_shutil.py
Lib/test/test_shutil.py
+4
-1
No files found.
Lib/test/test_shutil.py
View file @
304e542c
...
@@ -10,6 +10,7 @@ import os.path
...
@@ -10,6 +10,7 @@ import os.path
import
errno
import
errno
import
functools
import
functools
import
subprocess
import
subprocess
from
contextlib
import
ExitStack
from
test
import
support
from
test
import
support
from
test.support
import
TESTFN
from
test.support
import
TESTFN
from
os.path
import
splitdrive
from
os.path
import
splitdrive
...
@@ -122,7 +123,9 @@ class TestShutil(unittest.TestCase):
...
@@ -122,7 +123,9 @@ class TestShutil(unittest.TestCase):
write_file
(
os
.
path
.
join
(
victim
,
'somefile'
),
'foo'
)
write_file
(
os
.
path
.
join
(
victim
,
'somefile'
),
'foo'
)
victim
=
os
.
fsencode
(
victim
)
victim
=
os
.
fsencode
(
victim
)
self
.
assertIsInstance
(
victim
,
bytes
)
self
.
assertIsInstance
(
victim
,
bytes
)
shutil
.
rmtree
(
victim
)
win
=
(
os
.
name
==
'nt'
)
with
self
.
assertWarns
(
DeprecationWarning
)
if
win
else
ExitStack
():
shutil
.
rmtree
(
victim
)
@
support
.
skip_unless_symlink
@
support
.
skip_unless_symlink
def
test_rmtree_fails_on_symlink
(
self
):
def
test_rmtree_fails_on_symlink
(
self
):
...
...
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