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
17b52afd
Kaydet (Commit)
17b52afd
authored
Ara 15, 2007
tarafından
Christian Heimes
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #1624: Remove output comparison for test_pep277
I had to modify Brett's patch slightly.
üst
6c87af5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
test_pep277
Lib/test/output/test_pep277
+0
-3
test_pep277.py
Lib/test/test_pep277.py
+4
-5
No files found.
Lib/test/output/test_pep277
deleted
100644 → 0
Dosyayı görüntüle @
6c87af5d
test_pep277
u'\xdf-\u66e8\u66e9\u66eb'
[u'Gr\xfc\xdf-Gott', u'abc', u'ascii', u'\u0393\u03b5\u03b9\u03ac-\u03c3\u03b1\u03c2', u'\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435', u'\u05d4\u05e9\u05e7\u05e6\u05e5\u05e1', u'\u306b\u307d\u3093', u'\u66e8\u05e9\u3093\u0434\u0393\xdf', u'\u66e8\u66e9\u66eb']
Lib/test/test_pep277.py
Dosyayı görüntüle @
17b52afd
...
@@ -78,12 +78,12 @@ class UnicodeFileTests(unittest.TestCase):
...
@@ -78,12 +78,12 @@ class UnicodeFileTests(unittest.TestCase):
def
test_listdir
(
self
):
def
test_listdir
(
self
):
f1
=
os
.
listdir
(
test_support
.
TESTFN
)
f1
=
os
.
listdir
(
test_support
.
TESTFN
)
# Printing f1 is not appropriate, as specific filenames
# returned depend on the local encoding
f2
=
os
.
listdir
(
unicode
(
test_support
.
TESTFN
,
f2
=
os
.
listdir
(
unicode
(
test_support
.
TESTFN
,
sys
.
getfilesystemencoding
()))
sys
.
getfilesystemencoding
()))
f2
.
sort
()
sf2
=
set
(
u"
\\
"
.
join
((
unicode
(
test_support
.
TESTFN
),
f
))
print
f2
for
f
in
f2
)
self
.
failUnlessEqual
(
len
(
f1
),
len
(
self
.
files
))
self
.
failUnlessEqual
(
sf2
,
set
(
self
.
files
))
def
test_rename
(
self
):
def
test_rename
(
self
):
for
name
in
self
.
files
:
for
name
in
self
.
files
:
...
@@ -99,7 +99,6 @@ class UnicodeFileTests(unittest.TestCase):
...
@@ -99,7 +99,6 @@ class UnicodeFileTests(unittest.TestCase):
f
=
open
(
filename
,
'w'
)
f
=
open
(
filename
,
'w'
)
f
.
write
((
filename
+
'
\n
'
)
.
encode
(
"utf-8"
))
f
.
write
((
filename
+
'
\n
'
)
.
encode
(
"utf-8"
))
f
.
close
()
f
.
close
()
print
repr
(
filename
)
os
.
access
(
filename
,
os
.
R_OK
)
os
.
access
(
filename
,
os
.
R_OK
)
os
.
remove
(
filename
)
os
.
remove
(
filename
)
os
.
chdir
(
oldwd
)
os
.
chdir
(
oldwd
)
...
...
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