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
4dc05c34
Commit
4dc05c34
authored
Oct 22, 2017
by
Serhiy Storchaka
Committed by
GitHub
Oct 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix py3k warnings in 1/0 in tests. (#4072)
parent
8fa0648f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Lib/ctypes/test/test_parameters.py
Lib/ctypes/test/test_parameters.py
+1
-1
Lib/json/tests/test_speedups.py
Lib/json/tests/test_speedups.py
+1
-1
Lib/test/test_random.py
Lib/test/test_random.py
+2
-2
No files found.
Lib/ctypes/test/test_parameters.py
View file @
4dc05c34
...
...
@@ -202,7 +202,7 @@ class SimpleTypesTestCase(unittest.TestCase):
class
WorseStruct
(
Structure
):
@
property
def
__dict__
(
self
):
1
/
0
1
/
0
.0
with
self
.
assertRaises
(
ZeroDivisionError
):
WorseStruct
().
__setstate__
({},
b'foo'
)
...
...
Lib/json/tests/test_speedups.py
View file @
4dc05c34
...
...
@@ -3,7 +3,7 @@ from json.tests import CTest
class
BadBool
:
def
__nonzero__
(
self
):
1
/
0
1
/
0
.0
class
TestSpeedups
(
CTest
):
...
...
Lib/test/test_random.py
View file @
4dc05c34
...
...
@@ -313,10 +313,10 @@ class MersenneTwister_TestBasicOps(TestBasicOps):
# long/int subclass argument.
class
BadInt
(
int
):
def
__abs__
(
self
):
1
/
0
1
/
0
.0
class
BadLong
(
long
):
def
__abs__
(
self
):
1
/
0
1
/
0
.0
self
.
gen
.
seed
(
42
)
expected_value
=
self
.
gen
.
random
()
for
seed_arg
in
[
42L
,
BadInt
(
42
),
BadLong
(
42
)]:
...
...
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