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
3d717d05
Commit
3d717d05
authored
Nov 07, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #22643: Skip test_case_operation_overflow on computers with low memory.
parents
838b7cc0
411dfd87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
Lib/test/test_unicode.py
Lib/test/test_unicode.py
+9
-1
No files found.
Lib/test/test_unicode.py
View file @
3d717d05
...
...
@@ -849,7 +849,15 @@ class UnicodeTest(string_tests.CommonTest,
@
support
.
cpython_only
def
test_case_operation_overflow
(
self
):
# Issue #22643
self
.
assertRaises
(
OverflowError
,
(
"ü"
*
(
2
**
32
//
12
+
1
)).
upper
)
size
=
2
**
32
//
12
+
1
try
:
s
=
"ü"
*
size
except
MemoryError
:
self
.
skipTest
(
'no enough memory (%.0f MiB required)'
%
(
size
/
2
**
20
))
try
:
self
.
assertRaises
(
OverflowError
,
s
.
upper
)
finally
:
del
s
def
test_contains
(
self
):
# Testing Unicode contains method
...
...
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