mirror of https://github.com/python/cpython
Suppress assert dialogs in test_os
This commit is contained in:
parent
79938f22ef
commit
d5a0be6fc0
|
@ -1199,7 +1199,9 @@ class URandomFDTests(unittest.TestCase):
|
||||||
code = """if 1:
|
code = """if 1:
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import test.support
|
||||||
os.urandom(4)
|
os.urandom(4)
|
||||||
|
with test.support.SuppressCrashReport():
|
||||||
os.closerange(3, 256)
|
os.closerange(3, 256)
|
||||||
sys.stdout.buffer.write(os.urandom(4))
|
sys.stdout.buffer.write(os.urandom(4))
|
||||||
"""
|
"""
|
||||||
|
@ -1214,7 +1216,9 @@ class URandomFDTests(unittest.TestCase):
|
||||||
code = """if 1:
|
code = """if 1:
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import test.support
|
||||||
os.urandom(4)
|
os.urandom(4)
|
||||||
|
with test.support.SuppressCrashReport():
|
||||||
for fd in range(3, 256):
|
for fd in range(3, 256):
|
||||||
try:
|
try:
|
||||||
os.close(fd)
|
os.close(fd)
|
||||||
|
|
Loading…
Reference in New Issue