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
2212ee2b
Commit
2212ee2b
authored
Nov 30, 2018
by
Victor Stinner
Committed by
GitHub
Nov 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace 1/0 with 1//0 in tests to avoid Python 3 warns (GH-10833)
Fix DeprecationWarning when tests are run using python -3.
parent
bc9f53f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Lib/test/test_bdb.py
Lib/test/test_bdb.py
+1
-1
Lib/test/test_gdb.py
Lib/test/test_gdb.py
+1
-1
Lib/test/test_sys_settrace.py
Lib/test/test_sys_settrace.py
+1
-1
No files found.
Lib/test/test_bdb.py
View file @
2212ee2b
...
...
@@ -868,7 +868,7 @@ class BreakpointTestCase(BaseTestCase):
with
create_modules
(
modules
):
self
.
expect_set
=
[
(
'line'
,
2
,
'tfunc_import'
),
break_in_func
(
'func'
,
TEST_MODULE_FNAME
,
False
,
'1 / 0'
),
break_in_func
(
'func'
,
TEST_MODULE_FNAME
,
False
,
'1 /
/
0'
),
(
'None'
,
2
,
'tfunc_import'
),
(
'continue'
,
),
(
'line'
,
3
,
'func'
,
({
1
:
1
},
[])),
(
'quit'
,
),
]
...
...
Lib/test/test_gdb.py
View file @
2212ee2b
...
...
@@ -423,7 +423,7 @@ except RuntimeError, e:
# Test division by zero:
gdb_repr, gdb_output = self.get_gdb_repr('''
try:
a = 1 / 0
a = 1 /
/
0
except ZeroDivisionError, e:
print e
''')
...
...
Lib/test/test_sys_settrace.py
View file @
2212ee2b
...
...
@@ -1053,7 +1053,7 @@ output.append(4)
"can only jump from a 'line' trace event"
))
def
test_no_jump_from_exception_event
(
output
):
output
.
append
(
1
)
1
/
0
1
/
/
0
@
jump_test
(
3
,
2
,
[
2
],
event
=
'return'
,
error
=
(
ValueError
,
"can't jump from a yield statement"
))
...
...
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