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
5c6e6fc5
Commit
5c6e6fc5
authored
Jul 12, 2014
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #21932: Skip test_os.test_large_read() on 32-bit system
parent
e8567106
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Lib/test/test_os.py
Lib/test/test_os.py
+6
-2
No files found.
Lib/test/test_os.py
View file @
5c6e6fc5
...
...
@@ -44,9 +44,9 @@ try:
except
ImportError
:
_winapi
=
None
try
:
from
_testcapi
import
INT_MAX
from
_testcapi
import
INT_MAX
,
PY_SSIZE_T_MAX
except
ImportError
:
INT_MAX
=
2
**
31
-
1
INT_MAX
=
PY_SSIZE_T_MAX
=
sys
.
maxsize
from
test.script_helper
import
assert_python_ok
...
...
@@ -124,6 +124,10 @@ class FileTests(unittest.TestCase):
self
.
assertEqual
(
s
,
b"spam"
)
@
support
.
cpython_only
# Skip the test on 32-bit platforms: the number of bytes must fit in a
# Py_ssize_t type
@
unittest
.
skipUnless
(
INT_MAX
<
PY_SSIZE_T_MAX
,
"needs INT_MAX < PY_SSIZE_T_MAX"
)
@
support
.
bigmemtest
(
size
=
INT_MAX
+
10
,
memuse
=
1
,
dry_run
=
False
)
def
test_large_read
(
self
,
size
):
with
open
(
support
.
TESTFN
,
"wb"
)
as
fp
:
...
...
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