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
1ef73d21
Commit
1ef73d21
authored
Dec 28, 2012
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #16792: Mark small ints test as CPython-only.
parents
8a158be9
3b317044
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
Lib/test/test_int.py
Lib/test/test_int.py
+8
-4
No files found.
Lib/test/test_int.py
View file @
1ef73d21
...
...
@@ -100,10 +100,6 @@ class IntTestCases(unittest.TestCase):
self
.
assertRaises
(
ValueError
,
int
,
"0b"
,
2
)
self
.
assertRaises
(
ValueError
,
int
,
"0b"
,
0
)
# Bug #3236: Return small longs from PyLong_FromString
self
.
assertTrue
(
int
(
"10"
)
is
10
)
self
.
assertTrue
(
int
(
"-1"
)
is
-
1
)
# SF bug 1334662: int(string, base) wrong answers
# Various representations of 2**32 evaluated to 0
# rather than 2**32 in previous versions
...
...
@@ -221,6 +217,14 @@ class IntTestCases(unittest.TestCase):
self
.
assertEqual
(
int
(
'2br45qc'
,
35
),
4294967297
)
self
.
assertEqual
(
int
(
'1z141z5'
,
36
),
4294967297
)
@
support
.
cpython_only
def
test_small_ints
(
self
):
# Bug #3236: Return small longs from PyLong_FromString
self
.
assertIs
(
int
(
'10'
),
10
)
self
.
assertIs
(
int
(
'-1'
),
-
1
)
self
.
assertIs
(
int
(
b'10'
),
10
)
self
.
assertIs
(
int
(
b'-1'
),
-
1
)
def
test_no_args
(
self
):
self
.
assertEquals
(
int
(),
0
)
...
...
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