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
d47af531
Kaydet (Commit)
d47af531
authored
Mar 15, 2011
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move off of assertEquals() and over to assertEqual().
üst
ab1dfd68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test_fileinput.py
Lib/test/test_fileinput.py
+3
-3
No files found.
Lib/test/test_fileinput.py
Dosyayı görüntüle @
d47af531
...
@@ -277,7 +277,7 @@ class FileInputTests(unittest.TestCase):
...
@@ -277,7 +277,7 @@ class FileInputTests(unittest.TestCase):
def
test_empty_files_list_specified_to_constructor
(
self
):
def
test_empty_files_list_specified_to_constructor
(
self
):
with
FileInput
(
files
=
[])
as
fi
:
with
FileInput
(
files
=
[])
as
fi
:
self
.
assertEqual
s
(
fi
.
_files
,
(
'-'
,))
self
.
assertEqual
(
fi
.
_files
,
(
'-'
,))
def
test__getitem__
(
self
):
def
test__getitem__
(
self
):
"""Tests invoking FileInput.__getitem__() with the current
"""Tests invoking FileInput.__getitem__() with the current
...
@@ -298,7 +298,7 @@ class FileInputTests(unittest.TestCase):
...
@@ -298,7 +298,7 @@ class FileInputTests(unittest.TestCase):
with
FileInput
(
files
=
[
t
])
as
fi
:
with
FileInput
(
files
=
[
t
])
as
fi
:
with
self
.
assertRaises
(
RuntimeError
)
as
cm
:
with
self
.
assertRaises
(
RuntimeError
)
as
cm
:
fi
[
1
]
fi
[
1
]
self
.
assertEqual
s
(
cm
.
exception
.
args
,
(
"accessing lines out of order"
,))
self
.
assertEqual
(
cm
.
exception
.
args
,
(
"accessing lines out of order"
,))
def
test__getitem__eof
(
self
):
def
test__getitem__eof
(
self
):
"""Tests invoking FileInput.__getitem__() with the line number but at
"""Tests invoking FileInput.__getitem__() with the line number but at
...
@@ -308,7 +308,7 @@ class FileInputTests(unittest.TestCase):
...
@@ -308,7 +308,7 @@ class FileInputTests(unittest.TestCase):
with
FileInput
(
files
=
[
t
])
as
fi
:
with
FileInput
(
files
=
[
t
])
as
fi
:
with
self
.
assertRaises
(
IndexError
)
as
cm
:
with
self
.
assertRaises
(
IndexError
)
as
cm
:
fi
[
0
]
fi
[
0
]
self
.
assertEqual
s
(
cm
.
exception
.
args
,
(
"end of input reached"
,))
self
.
assertEqual
(
cm
.
exception
.
args
,
(
"end of input reached"
,))
def
test_nextfile_oserror_deleting_backup
(
self
):
def
test_nextfile_oserror_deleting_backup
(
self
):
"""Tests invoking FileInput.nextfile() when the attempt to delete
"""Tests invoking FileInput.nextfile() when the attempt to delete
...
...
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