mirror of https://github.com/python/cpython.git
test_io: make quiet the DeprecationWarning('classic int division')
This commit is contained in:
parent
42dcc679c2
commit
4c41f84033
|
@ -2612,7 +2612,7 @@ def check_reentrant_write(self, data, **fdopen_kwargs):
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue