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
0f888918
Kaydet (Commit)
0f888918
authored
Şub 22, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Broke reference loops in tests added in issue #5700.
üst
06a13f81
c26a1a49
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
test_io.py
Lib/test/test_io.py
+3
-0
No files found.
Lib/test/test_io.py
Dosyayı görüntüle @
0f888918
...
...
@@ -602,6 +602,7 @@ class IOTest(unittest.TestCase):
self
.
assertTrue
(
f
.
closed
)
self
.
assertTrue
(
closed
)
# flush() called
self
.
assertFalse
(
closed
[
0
])
# flush() called before file closed
f
.
flush
=
lambda
:
None
# break reference loop
def
test_flush_error_on_close
(
self
):
# raw file
...
...
@@ -829,6 +830,7 @@ class CommonBufferedTests:
self
.
assertTrue
(
closed
)
# flush() called
self
.
assertFalse
(
closed
[
0
])
# flush() called before file closed
self
.
assertFalse
(
closed
[
1
])
raw
.
flush
=
lambda
:
None
# break reference loop
def
test_close_error_on_close
(
self
):
raw
=
self
.
MockRawIO
()
...
...
@@ -2731,6 +2733,7 @@ class TextIOWrapperTest(unittest.TestCase):
self
.
assertTrue
(
closed
)
# flush() called
self
.
assertFalse
(
closed
[
0
])
# flush() called before file closed
self
.
assertFalse
(
closed
[
1
])
txt
.
flush
=
lambda
:
None
# break reference loop
def
test_close_error_on_close
(
self
):
buffer
=
self
.
BytesIO
(
self
.
testdata
)
...
...
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