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
f5806ab6
Kaydet (Commit)
f5806ab6
authored
Şub 04, 2008
tarafından
Christian Heimes
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Small adjustments for test compact freelist test. It's no passing on Windows as well.
üst
f4033ab2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
test_sys.py
Lib/test/test_sys.py
+5
-5
No files found.
Lib/test/test_sys.py
Dosyayı görüntüle @
f5806ab6
...
@@ -373,17 +373,17 @@ class SysModuleTest(unittest.TestCase):
...
@@ -373,17 +373,17 @@ class SysModuleTest(unittest.TestCase):
self
.
assertEqual
(
r
[
0
][
2
],
0
)
self
.
assertEqual
(
r
[
0
][
2
],
0
)
self
.
assertEqual
(
r
[
1
][
2
],
0
)
self
.
assertEqual
(
r
[
1
][
2
],
0
)
# fill freelists
# fill freelists
ints
=
list
(
range
(
1
2
000
))
ints
=
list
(
range
(
1
0
000
))
floats
=
[
float
(
i
)
for
i
in
ints
]
floats
=
[
float
(
i
)
for
i
in
ints
]
del
ints
del
ints
del
floats
del
floats
# should free more than 200 blocks each
# should free more than 200 blocks each
r
=
sys
.
_compact_freelists
()
r
=
sys
.
_compact_freelists
()
self
.
assert_
(
r
[
0
][
1
]
>
2
00
,
r
[
0
][
1
])
self
.
assert_
(
r
[
0
][
1
]
>
1
00
,
r
[
0
][
1
])
self
.
assert_
(
r
[
1
][
2
]
>
2
00
,
r
[
1
][
1
])
self
.
assert_
(
r
[
1
][
2
]
>
1
00
,
r
[
1
][
1
])
self
.
assert_
(
r
[
0
][
2
]
>
2
00
,
r
[
0
][
2
])
self
.
assert_
(
r
[
0
][
2
]
>
1
00
,
r
[
0
][
2
])
self
.
assert_
(
r
[
1
][
2
]
>
2
00
,
r
[
1
][
2
])
self
.
assert_
(
r
[
1
][
2
]
>
1
00
,
r
[
1
][
2
])
def
test_main
():
def
test_main
():
test
.
test_support
.
run_unittest
(
SysModuleTest
)
test
.
test_support
.
run_unittest
(
SysModuleTest
)
...
...
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