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
69ed5240
Commit
69ed5240
authored
Aug 23, 2008
by
Mark Hammond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug 3625: test issues on 64bit windows. r=pitrou
parent
94a73054
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Lib/test/test_bytes.py
Lib/test/test_bytes.py
+1
-1
Lib/test/test_list.py
Lib/test/test_list.py
+1
-1
Lib/test/test_struct.py
Lib/test/test_struct.py
+1
-1
No files found.
Lib/test/test_bytes.py
View file @
69ed5240
...
...
@@ -213,7 +213,7 @@ class BaseBytesTest(unittest.TestCase):
self
.
assertRaises
(
TypeError
,
lambda
:
3.14
*
b
)
# XXX Shouldn't bytes and bytearray agree on what to raise?
self
.
assertRaises
((
OverflowError
,
MemoryError
),
lambda
:
b
*
sys
.
max
int
)
lambda
:
b
*
sys
.
max
size
)
def
test_repeat_1char
(
self
):
self
.
assertEqual
(
self
.
type2test
(
b'x'
)
*
100
,
self
.
type2test
([
ord
(
'x'
)]
*
100
))
...
...
Lib/test/test_list.py
View file @
69ed5240
...
...
@@ -15,7 +15,7 @@ class ListTest(list_tests.CommonTest):
self
.
assertEqual
(
list
(
''
),
[])
self
.
assertEqual
(
list
(
'spam'
),
[
's'
,
'p'
,
'a'
,
'm'
])
if
sys
.
max
int
==
0x7fffffff
:
if
sys
.
max
size
==
0x7fffffff
:
# This test can currently only work on 32-bit machines.
# XXX If/when PySequence_Length() returns a ssize_t, it should be
# XXX re-enabled.
...
...
Lib/test/test_struct.py
View file @
69ed5240
...
...
@@ -8,7 +8,7 @@ from test.test_support import TestFailed, verbose, run_unittest, catch_warning
import
sys
ISBIGENDIAN
=
sys
.
byteorder
==
"big"
IS32BIT
=
sys
.
max
int
==
0x7fffffff
IS32BIT
=
sys
.
max
size
==
0x7fffffff
del
sys
try
:
...
...
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