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
bb4a47c8
Kaydet (Commit)
bb4a47c8
authored
Tem 16, 2003
tarafından
Mark Hammond
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Prevent failure on the mac, where "mbcs" is not the file system
encoding. Use sys.getfilesystemencoding().
üst
0bb242b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
test_pep277.py
Lib/test/test_pep277.py
+3
-2
No files found.
Lib/test/test_pep277.py
Dosyayı görüntüle @
bb4a47c8
# Test the Unicode versions of normal file functions
# open, os.open, os.stat. os.listdir, os.rename, os.remove, os.mkdir, os.chdir, os.rmdir
import
os
,
unittest
import
sys
,
os
,
unittest
from
test
import
test_support
if
not
os
.
path
.
supports_unicode_filenames
:
raise
test_support
.
TestSkipped
,
"test works only on NT+"
...
...
@@ -79,7 +79,8 @@ class UnicodeFileTests(unittest.TestCase):
def
test_listdir
(
self
):
f1
=
os
.
listdir
(
test_support
.
TESTFN
)
f1
.
sort
()
f2
=
os
.
listdir
(
unicode
(
test_support
.
TESTFN
,
"mbcs"
))
f2
=
os
.
listdir
(
unicode
(
test_support
.
TESTFN
,
sys
.
getfilesystemencoding
()))
f2
.
sort
()
print
f1
print
f2
...
...
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