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
c50cb8e9
Kaydet (Commit)
c50cb8e9
authored
Nis 19, 2009
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix use of test skipping API.
üst
cf4c7496
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test_io.py
Lib/test/test_io.py
+3
-3
No files found.
Lib/test/test_io.py
Dosyayı görüntüle @
c50cb8e9
...
@@ -509,11 +509,11 @@ class IOTest(unittest.TestCase):
...
@@ -509,11 +509,11 @@ class IOTest(unittest.TestCase):
# Issue #1174606: reading from an unbounded stream such as /dev/zero.
# Issue #1174606: reading from an unbounded stream such as /dev/zero.
zero
=
"/dev/zero"
zero
=
"/dev/zero"
if
not
os
.
path
.
exists
(
zero
):
if
not
os
.
path
.
exists
(
zero
):
self
.
skip
(
"{0} does not exist"
.
format
(
zero
))
self
.
skip
Test
(
"{0} does not exist"
.
format
(
zero
))
if
sys
.
maxsize
>
0x7FFFFFFF
:
if
sys
.
maxsize
>
0x7FFFFFFF
:
self
.
skip
(
"test can only run in a 32-bit address space"
)
self
.
skip
Test
(
"test can only run in a 32-bit address space"
)
if
support
.
real_max_memuse
<
support
.
_2G
:
if
support
.
real_max_memuse
<
support
.
_2G
:
self
.
skip
(
"test requires at least 2GB of memory"
)
self
.
skip
Test
(
"test requires at least 2GB of memory"
)
with
open
(
zero
,
"rb"
,
buffering
=
0
)
as
f
:
with
open
(
zero
,
"rb"
,
buffering
=
0
)
as
f
:
self
.
assertRaises
(
OverflowError
,
f
.
read
)
self
.
assertRaises
(
OverflowError
,
f
.
read
)
with
open
(
zero
,
"rb"
)
as
f
:
with
open
(
zero
,
"rb"
)
as
f
:
...
...
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