Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
41ad77c6
Kaydet (Commit)
41ad77c6
authored
Agu 07, 2014
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #20056: Fixed deprecation warning about bytes path in test_shutil on
Windows. Path by Vajrasky Kok.
üst
22f2d2ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
test_shutil.py
Lib/test/test_shutil.py
+4
-1
No files found.
Lib/test/test_shutil.py
Dosyayı görüntüle @
41ad77c6
...
...
@@ -10,6 +10,7 @@ import os.path
import
errno
import
functools
import
subprocess
from
contextlib
import
ExitStack
from
test
import
support
from
test.support
import
TESTFN
from
os.path
import
splitdrive
...
...
@@ -116,7 +117,9 @@ class TestShutil(unittest.TestCase):
write_file
(
os
.
path
.
join
(
victim
,
'somefile'
),
'foo'
)
victim
=
os
.
fsencode
(
victim
)
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
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