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
c9da0893
Kaydet (Commit)
c9da0893
authored
Ock 10, 2014
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #19886: Use better estimated memory requirements for bigmem tests.
Incorrect requirements can cause memory swapping.
üst
9f8621fa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
20 deletions
+12
-20
test_hashlib.py
Lib/test/test_hashlib.py
+9
-19
test_marshal.py
Lib/test/test_marshal.py
+1
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_hashlib.py
Dosyayı görüntüle @
c9da0893
...
...
@@ -207,30 +207,20 @@ class HashLibTestCase(unittest.TestCase):
self
.
check
(
'md5'
,
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
,
'd174ab98d277d9f5a5611c2c9f419d9f'
)
@precisionbigmemtest
(
size
=
_4G
+
5
,
memuse
=
1
)
@unittest.skipIf
(
sys
.
maxsize
<
_4G
+
5
,
'test cannot run on 32-bit systems'
)
@precisionbigmemtest
(
size
=
_4G
+
5
,
memuse
=
1
,
dry_run
=
False
)
def
test_case_md5_huge
(
self
,
size
):
if
size
==
_4G
+
5
:
try
:
self
.
check
(
'md5'
,
'A'
*
size
,
'c9af2dff37468ce5dfee8f2cfc0a9c6d'
)
except
OverflowError
:
pass
# 32-bit arch
self
.
check
(
'md5'
,
'A'
*
size
,
'c9af2dff37468ce5dfee8f2cfc0a9c6d'
)
@precisionbigmemtest
(
size
=
_4G
+
5
,
memuse
=
1
)
@unittest.skipIf
(
sys
.
maxsize
<
_4G
+
5
,
'test cannot run on 32-bit systems'
)
@precisionbigmemtest
(
size
=
_4G
+
5
,
memuse
=
1
,
dry_run
=
False
)
def
test_case_md5_huge_update
(
self
,
size
):
if
size
==
_4G
+
5
:
try
:
self
.
check_update
(
'md5'
,
'A'
*
size
,
'c9af2dff37468ce5dfee8f2cfc0a9c6d'
)
except
OverflowError
:
pass
# 32-bit arch
self
.
check_update
(
'md5'
,
'A'
*
size
,
'c9af2dff37468ce5dfee8f2cfc0a9c6d'
)
@precisionbigmemtest
(
size
=
_4G
-
1
,
memuse
=
1
)
@unittest.skipIf
(
sys
.
maxsize
<
_4G
-
1
,
'test cannot run on 32-bit systems'
)
@precisionbigmemtest
(
size
=
_4G
-
1
,
memuse
=
1
,
dry_run
=
False
)
def
test_case_md5_uintmax
(
self
,
size
):
if
size
==
_4G
-
1
:
try
:
self
.
check
(
'md5'
,
'A'
*
size
,
'28138d306ff1b8281f1a9067e1a1a2b3'
)
except
OverflowError
:
pass
# 32-bit arch
self
.
check
(
'md5'
,
'A'
*
size
,
'28138d306ff1b8281f1a9067e1a1a2b3'
)
# use the three examples from Federal Information Processing Standards
# Publication 180-1, Secure Hash Standard, 1995 April 17
...
...
Lib/test/test_marshal.py
Dosyayı görüntüle @
c9da0893
...
...
@@ -286,7 +286,7 @@ class LargeValuesTestCase(unittest.TestCase):
self
.
check_unmarshallable
(
'x'
*
size
)
@test_support.precisionbigmemtest
(
size
=
LARGE_SIZE
,
memuse
=
character_size
,
dry_run
=
False
)
memuse
=
character_size
+
2
,
dry_run
=
False
)
def
test_unicode
(
self
,
size
):
self
.
check_unmarshallable
(
u'x'
*
size
)
...
...
Misc/NEWS
Dosyayı görüntüle @
c9da0893
...
...
@@ -161,6 +161,8 @@ IDLE
Tests
-----
- Issue #19886: Use better estimated memory requirements for bigmem tests.
- Backported tests for Tkinter variables.
- Issue #19320: test_tcl no longer fails when wantobjects is false.
...
...
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