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
c3afbb95
Kaydet (Commit)
c3afbb95
authored
May 14, 2011
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Skip test in test_fileinput when zlib is missing.
üst
6b718114
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
test_fileinput.py
Lib/test/test_fileinput.py
+5
-1
No files found.
Lib/test/test_fileinput.py
Dosyayı görüntüle @
c3afbb95
...
@@ -7,7 +7,6 @@ import sys
...
@@ -7,7 +7,6 @@ import sys
import
re
import
re
import
fileinput
import
fileinput
import
collections
import
collections
import
gzip
import
types
import
types
import
codecs
import
codecs
import
unittest
import
unittest
...
@@ -16,6 +15,10 @@ try:
...
@@ -16,6 +15,10 @@ try:
import
bz2
import
bz2
except
ImportError
:
except
ImportError
:
bz2
=
None
bz2
=
None
try
:
import
gzip
except
ImportError
:
gzip
=
None
from
io
import
StringIO
from
io
import
StringIO
from
fileinput
import
FileInput
,
hook_encoded
from
fileinput
import
FileInput
,
hook_encoded
...
@@ -758,6 +761,7 @@ class Test_hook_compressed(unittest.TestCase):
...
@@ -758,6 +761,7 @@ class Test_hook_compressed(unittest.TestCase):
def
test_no_ext
(
self
):
def
test_no_ext
(
self
):
self
.
do_test_use_builtin_open
(
"abcd"
,
2
)
self
.
do_test_use_builtin_open
(
"abcd"
,
2
)
@unittest.skipUnless
(
gzip
,
"Requires gzip and zlib"
)
def
test_gz_ext_fake
(
self
):
def
test_gz_ext_fake
(
self
):
original_open
=
gzip
.
open
original_open
=
gzip
.
open
gzip
.
open
=
self
.
fake_open
gzip
.
open
=
self
.
fake_open
...
...
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