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
8ac582f7
Commit
8ac582f7
authored
Oct 06, 2011
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix size estimation for test_bigmem.StrTest.test_format
parent
de21f846
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Lib/test/test_bigmem.py
Lib/test/test_bigmem.py
+3
-1
No files found.
Lib/test/test_bigmem.py
View file @
8ac582f7
...
@@ -647,7 +647,9 @@ class StrTest(unittest.TestCase, BaseStrTest):
...
@@ -647,7 +647,9 @@ class StrTest(unittest.TestCase, BaseStrTest):
def
test_encode_ascii
(
self
,
size
):
def
test_encode_ascii
(
self
,
size
):
return
self
.
basic_encode_test
(
size
,
'ascii'
,
c
=
'A'
)
return
self
.
basic_encode_test
(
size
,
'ascii'
,
c
=
'A'
)
@
bigmemtest
(
size
=
_2G
+
10
,
memuse
=
ascii_char_size
*
2
)
# str % (...) uses a Py_UCS4 intermediate representation
@
bigmemtest
(
size
=
_2G
+
10
,
memuse
=
ascii_char_size
*
2
+
ucs4_char_size
)
def
test_format
(
self
,
size
):
def
test_format
(
self
,
size
):
s
=
'-'
*
size
s
=
'-'
*
size
sf
=
'%s'
%
(
s
,)
sf
=
'%s'
%
(
s
,)
...
...
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