Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c9da0893
Commit
c9da0893
authored
Jan 10, 2014
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19886: Use better estimated memory requirements for bigmem tests.
Incorrect requirements can cause memory swapping.
parent
9f8621fa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
20 deletions
+12
-20
Lib/test/test_hashlib.py
Lib/test/test_hashlib.py
+9
-19
Lib/test/test_marshal.py
Lib/test/test_marshal.py
+1
-1
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_hashlib.py
View file @
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
View file @
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
View file @
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