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
e58571b7
Kaydet (Commit)
e58571b7
authored
Eyl 08, 2016
tarafından
Steve Dower
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixes tests broken by issue #27781.
üst
ee178e6d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
test_genericpath.py
Lib/test/test_genericpath.py
+4
-1
test_httpservers.py
Lib/test/test_httpservers.py
+2
-0
test_shutil.py
Lib/test/test_shutil.py
+1
-3
test_sys.py
Lib/test/test_sys.py
+3
-2
No files found.
Lib/test/test_genericpath.py
Dosyayı görüntüle @
e58571b7
...
...
@@ -388,10 +388,13 @@ class CommonTest(GenericTest):
warnings
.
simplefilter
(
"ignore"
,
DeprecationWarning
)
self
.
assertIn
(
b
"foo"
,
self
.
pathmodule
.
abspath
(
b
"foo"
))
# avoid UnicodeDecodeError on Windows
undecodable_path
=
b
''
if
sys
.
platform
==
'win32'
else
b
'f
\xf2\xf2
'
# Abspath returns bytes when the arg is bytes
with
warnings
.
catch_warnings
():
warnings
.
simplefilter
(
"ignore"
,
DeprecationWarning
)
for
path
in
(
b
''
,
b
'foo'
,
b
'f
\xf2\xf2
'
,
b
'/foo'
,
b
'C:
\\
'
):
for
path
in
(
b
''
,
b
'foo'
,
undecodable_path
,
b
'/foo'
,
b
'C:
\\
'
):
self
.
assertIsInstance
(
self
.
pathmodule
.
abspath
(
path
),
bytes
)
def
test_realpath
(
self
):
...
...
Lib/test/test_httpservers.py
Dosyayı görüntüle @
e58571b7
...
...
@@ -370,6 +370,8 @@ class SimpleHTTPServerTestCase(BaseTestCase):
return
body
@support.requires_mac_ver
(
10
,
5
)
@unittest.skipIf
(
sys
.
platform
==
'win32'
,
'undecodable name cannot be decoded on win32'
)
@unittest.skipUnless
(
support
.
TESTFN_UNDECODABLE
,
'need support.TESTFN_UNDECODABLE'
)
def
test_undecodable_filename
(
self
):
...
...
Lib/test/test_shutil.py
Dosyayı görüntüle @
e58571b7
...
...
@@ -132,9 +132,7 @@ class TestShutil(unittest.TestCase):
write_file
(
os
.
path
.
join
(
victim
,
'somefile'
),
'foo'
)
victim
=
os
.
fsencode
(
victim
)
self
.
assertIsInstance
(
victim
,
bytes
)
win
=
(
os
.
name
==
'nt'
)
with
self
.
assertWarns
(
DeprecationWarning
)
if
win
else
ExitStack
():
shutil
.
rmtree
(
victim
)
shutil
.
rmtree
(
victim
)
@support.skip_unless_symlink
def
test_rmtree_fails_on_symlink
(
self
):
...
...
Lib/test/test_sys.py
Dosyayı görüntüle @
e58571b7
...
...
@@ -10,6 +10,7 @@ import codecs
import
gc
import
sysconfig
import
platform
import
locale
# count the number of test runs, used to create unique
# strings to intern in test_intern()
...
...
@@ -627,6 +628,8 @@ class SysModuleTest(unittest.TestCase):
@unittest.skipUnless
(
test
.
support
.
FS_NONASCII
,
'requires OS support of non-ASCII encodings'
)
@unittest.skipUnless
(
sys
.
getfilesystemencoding
()
==
locale
.
getpreferredencoding
(
False
),
'requires FS encoding to match locale'
)
def
test_ioencoding_nonascii
(
self
):
env
=
dict
(
os
.
environ
)
...
...
@@ -669,8 +672,6 @@ class SysModuleTest(unittest.TestCase):
fs_encoding
=
sys
.
getfilesystemencoding
()
if
sys
.
platform
==
'darwin'
:
expected
=
'utf-8'
elif
sys
.
platform
==
'win32'
:
expected
=
'mbcs'
else
:
expected
=
None
self
.
check_fsencoding
(
fs_encoding
,
expected
)
...
...
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