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
c0a9d415
Kaydet (Commit)
c0a9d415
authored
Mar 02, 2010
tarafından
Florent Xicluna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Test test_pep277 is only relevant for Unicode-friendly filesystems.
üst
fa31eaa5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
test_pep277.py
Lib/test/test_pep277.py
+6
-4
NEWS
Misc/NEWS
+2
-1
No files found.
Lib/test/test_pep277.py
Dosyayı görüntüle @
c0a9d415
...
@@ -2,9 +2,6 @@
...
@@ -2,9 +2,6 @@
# open, os.open, os.stat. os.listdir, os.rename, os.remove, os.mkdir, os.chdir, os.rmdir
# open, os.open, os.stat. os.listdir, os.rename, os.remove, os.mkdir, os.chdir, os.rmdir
import
sys
,
os
,
unittest
import
sys
,
os
,
unittest
from
test
import
test_support
from
test
import
test_support
## There's no obvious reason to skip these tests on POSIX systems
# if not os.path.supports_unicode_filenames:
# raise unittest.SkipTest, "test works only on NT+"
filenames
=
[
filenames
=
[
'abc'
,
'abc'
,
...
@@ -37,7 +34,12 @@ class UnicodeFileTests(unittest.TestCase):
...
@@ -37,7 +34,12 @@ class UnicodeFileTests(unittest.TestCase):
except
OSError
:
except
OSError
:
pass
pass
for
name
in
self
.
files
:
for
name
in
self
.
files
:
f
=
open
(
name
,
'w'
)
try
:
f
=
open
(
name
,
'w'
)
except
UnicodeEncodeError
:
if
not
os
.
path
.
supports_unicode_filenames
:
raise
unittest
.
SkipTest
(
"test works only on NT+, and with "
"pseudo-Unicode filesystems"
)
f
.
write
((
name
+
'
\n
'
)
.
encode
(
"utf-8"
))
f
.
write
((
name
+
'
\n
'
)
.
encode
(
"utf-8"
))
f
.
close
()
f
.
close
()
os
.
stat
(
name
)
os
.
stat
(
name
)
...
...
Misc/NEWS
Dosyayı görüntüle @
c0a9d415
...
@@ -106,7 +106,8 @@ Extension Modules
...
@@ -106,7 +106,8 @@ Extension Modules
Tests
Tests
-----
-----
- Issue #767675: enable test_pep277 on all platforms.
- Issue #767675: enable test_pep277 on POSIX platforms with Unicode-friendly
filesystem encoding.
- Issue #6292: for the moment at least, the test suite runs cleanly if python
- Issue #6292: for the moment at least, the test suite runs cleanly if python
is run with the -OO flag. Tests requiring docstrings are skipped.
is run with the -OO flag. Tests requiring docstrings are skipped.
...
...
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