Commit d7a880c3 authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

Fix DeprecationWarning in test_bytes (GH-10805)

Running test_bytes with python -3 -Wd emits two DeprecationWarning on
"1/0". Use "1//0" to prevent the warning.
parent f3fe21a3
......@@ -161,13 +161,13 @@ class BaseBytesTest(unittest.TestCase):
# exceptions.
class BadInt:
def __index__(self):
1/0
1//0
self.assertRaises(ZeroDivisionError, self.type2test, BadInt())
self.assertRaises(ZeroDivisionError, self.type2test, [BadInt()])
class BadIterable:
def __iter__(self):
1/0
1//0
self.assertRaises(ZeroDivisionError, self.type2test, BadIterable())
def test_compare(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment