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
535a5ef1
Kaydet (Commit)
535a5ef1
authored
Tem 10, 2007
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix test_file.py. It was passing on OSX for the wrong reason
(somehow OSX marks I/O devices as seekable).
üst
558ca847
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test_file.py
Lib/test/test_file.py
+2
-2
No files found.
Lib/test/test_file.py
Dosyayı görüntüle @
535a5ef1
...
@@ -140,12 +140,12 @@ class OtherFileTests(unittest.TestCase):
...
@@ -140,12 +140,12 @@ class OtherFileTests(unittest.TestCase):
def
testStdin
(
self
):
def
testStdin
(
self
):
# This causes the interpreter to exit on OSF1 v5.1.
# This causes the interpreter to exit on OSF1 v5.1.
if
sys
.
platform
!=
'osf1V5'
:
if
sys
.
platform
!=
'osf1V5'
:
self
.
assertRaises
(
ValueError
,
sys
.
stdin
.
seek
,
-
1
)
self
.
assertRaises
(
(
IOError
,
ValueError
)
,
sys
.
stdin
.
seek
,
-
1
)
else
:
else
:
print
((
print
((
' Skipping sys.stdin.seek(-1), it may crash the interpreter.'
' Skipping sys.stdin.seek(-1), it may crash the interpreter.'
' Test manually.'
),
file
=
sys
.
__stdout__
)
' Test manually.'
),
file
=
sys
.
__stdout__
)
self
.
assertRaises
(
ValueError
,
sys
.
stdin
.
truncate
)
self
.
assertRaises
(
(
IOError
,
ValueError
)
,
sys
.
stdin
.
truncate
)
def
testBadModeArgument
(
self
):
def
testBadModeArgument
(
self
):
# verify that we get a sensible error message for bad mode argument
# verify that we get a sensible error message for bad mode argument
...
...
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