mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
#7092: Silence more py3k warnings. Patch by Florent Xicluna.
This commit is contained in:
parent
17ae2ba78f
commit
dde5b94875
39 changed files with 102 additions and 85 deletions
|
@ -401,7 +401,7 @@ class RaisingTraceFuncTestCase(unittest.TestCase):
|
|||
we're testing, so that the 'exception' trace event fires."""
|
||||
if self.raiseOnEvent == 'exception':
|
||||
x = 0
|
||||
y = 1/x
|
||||
y = 1 // x
|
||||
else:
|
||||
return 1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue