]> granicus.if.org Git - python/commitdiff
test_io: make quiet the DeprecationWarning('classic int division')
authorVictor Stinner <victor.stinner@haypocalc.com>
Tue, 5 Jul 2011 11:29:26 +0000 (13:29 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Tue, 5 Jul 2011 11:29:26 +0000 (13:29 +0200)
Lib/test/test_io.py

index d9705e740574f6df3c7a6c781f233bc4a53ee731..0bc5800b3340a7d6cbc5f58b4e37f67fbb6cdb19 100644 (file)
@@ -2612,7 +2612,7 @@ class SignalsTest(unittest.TestCase):
         def on_alarm(*args):
             # Will be called reentrantly from the same thread
             wio.write(data)
-            1/0
+            1//0
         signal.signal(signal.SIGALRM, on_alarm)
         r, w = os.pipe()
         wio = self.io.open(w, **fdopen_kwargs)