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
5eb3591a
Kaydet (Commit)
5eb3591a
authored
14 years ago
tarafından
briancurtin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Adjust test names to be more descriptive instead of depending on capitalization.
üst
eb46288a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test_fileinput.py
Lib/test/test_fileinput.py
+4
-4
No files found.
Lib/test/test_fileinput.py
Dosyayı görüntüle @
5eb3591a
...
...
@@ -754,7 +754,7 @@ class Test_hook_compressed(unittest.TestCase):
def
test_no_ext
(
self
):
self
.
do_test_use_builtin_open
(
"abcd"
,
2
)
def
test_gz_ext
(
self
):
def
test_gz_ext
_fake
(
self
):
original_open
=
gzip
.
open
gzip
.
open
=
self
.
fake_open
try
:
...
...
@@ -765,7 +765,7 @@ class Test_hook_compressed(unittest.TestCase):
self
.
assertEqual
(
self
.
fake_open
.
invocation_count
,
1
)
self
.
assertEqual
(
self
.
fake_open
.
last_invocation
,
((
"test.gz"
,
3
),
{}))
def
test_bz2_ext
(
self
):
def
test_bz2_ext
_fake
(
self
):
original_open
=
bz2
.
BZ2File
bz2
.
BZ2File
=
self
.
fake_open
try
:
...
...
@@ -779,10 +779,10 @@ class Test_hook_compressed(unittest.TestCase):
def
test_blah_ext
(
self
):
self
.
do_test_use_builtin_open
(
"abcd.blah"
,
5
)
def
test_
Gz_ext
(
self
):
def
test_
gz_ext_builtin
(
self
):
self
.
do_test_use_builtin_open
(
"abcd.Gz"
,
6
)
def
test_
Bz2_ext
(
self
):
def
test_
bz2_ext_builtin
(
self
):
self
.
do_test_use_builtin_open
(
"abcd.Bz2"
,
7
)
def
do_test_use_builtin_open
(
self
,
filename
,
mode
):
...
...
This diff is collapsed.
Click to expand it.
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