From: Victor Stinner Date: Tue, 5 Jul 2011 11:29:26 +0000 (+0200) Subject: test_io: make quiet the DeprecationWarning('classic int division') X-Git-Tag: v2.7.3rc1~634 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4c41f84033ed257b3ef6586acd12ff87d00fa323;p=thirdparty%2FPython%2Fcpython.git test_io: make quiet the DeprecationWarning('classic int division') --- diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index d9705e740574..0bc5800b3340 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -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)