]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Silence warning about 1/0
authorFlorent Xicluna <florent.xicluna@gmail.com>
Mon, 13 Sep 2010 08:20:19 +0000 (08:20 +0000)
committerFlorent Xicluna <florent.xicluna@gmail.com>
Mon, 13 Sep 2010 08:20:19 +0000 (08:20 +0000)
Lib/test/test_io.py

index 8686f22535f66cdb125fa94f43167c0f9ccb0d20..d2ad2a6aa728ad70ad59a1e7293c360318176ef8 100644 (file)
@@ -2484,7 +2484,7 @@ class SignalsTest(unittest.TestCase):
         signal.signal(signal.SIGALRM, self.oldalrm)
 
     def alarm_interrupt(self, sig, frame):
-        1/0
+        1 // 0
 
     @unittest.skipUnless(threading, 'Threading required for this test.')
     def check_interrupted_write(self, item, bytes, **fdopen_kwargs):