test_io: make quiet the DeprecationWarning('classic int division')

This commit is contained in:
Victor Stinner 2011-07-05 13:29:26 +02:00
parent 42dcc679c2
commit 4c41f84033
1 changed files with 1 additions and 1 deletions

View File

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