mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-118140: Make the`test_concurrent_futures.test_init
` quiet. (GH-118141)
Add stream argument to unittest.TextTestRunner call
This commit is contained in:
parent
de1f686827
commit
d687d3fcfa
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ import queue
|
||||||
import time
|
import time
|
||||||
import unittest
|
import unittest
|
||||||
import sys
|
import sys
|
||||||
|
import io
|
||||||
from concurrent.futures._base import BrokenExecutor
|
from concurrent.futures._base import BrokenExecutor
|
||||||
from concurrent.futures.process import _check_system_limits
|
from concurrent.futures.process import _check_system_limits
|
||||||
|
|
||||||
|
@ -124,7 +125,7 @@ class FailingInitializerResourcesTest(unittest.TestCase):
|
||||||
except NotImplementedError:
|
except NotImplementedError:
|
||||||
self.skipTest("ProcessPoolExecutor unavailable on this system")
|
self.skipTest("ProcessPoolExecutor unavailable on this system")
|
||||||
|
|
||||||
runner = unittest.TextTestRunner()
|
runner = unittest.TextTestRunner(stream=io.StringIO())
|
||||||
runner.run(test_class('test_initializer'))
|
runner.run(test_class('test_initializer'))
|
||||||
|
|
||||||
# GH-104090:
|
# GH-104090:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue