summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sys_settrace.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-11-30 19:45:04 (GMT)
committerGitHub <noreply@github.com>2018-11-30 19:45:04 (GMT)
commit2212ee2bee70fc9b4c76e79cc532f52673e5a13f (patch)
tree609bfdcd929f1566b0e94a2e2480b1d969f4e301 /Lib/test/test_sys_settrace.py
parentbc9f53f69e8207027bf2b18e3d01b30401e76ace (diff)
downloadcpython-2212ee2bee70fc9b4c76e79cc532f52673e5a13f.zip
cpython-2212ee2bee70fc9b4c76e79cc532f52673e5a13f.tar.gz
cpython-2212ee2bee70fc9b4c76e79cc532f52673e5a13f.tar.bz2
Replace 1/0 with 1//0 in tests to avoid Python 3 warns (GH-10833)
Fix DeprecationWarning when tests are run using python -3.
Diffstat (limited to 'Lib/test/test_sys_settrace.py')
-rw-r--r--Lib/test/test_sys_settrace.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_sys_settrace.py b/Lib/test/test_sys_settrace.py
index d8737af..b6695fe 100644
--- a/Lib/test/test_sys_settrace.py
+++ b/Lib/test/test_sys_settrace.py
@@ -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"))