Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d687d3f

Browse files
authored
gh-118140: Make thetest_concurrent_futures.test_init quiet. (GH-118141)
Add stream argument to unittest.TextTestRunner call
1 parent de1f686 commit d687d3f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_concurrent_futures/test_init.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import time
55
import unittest
66
import sys
7+
import io
78
from concurrent.futures._base import BrokenExecutor
89
from concurrent.futures.process import _check_system_limits
910

@@ -124,7 +125,7 @@ def _test(self, test_class):
124125
except NotImplementedError:
125126
self.skipTest("ProcessPoolExecutor unavailable on this system")
126127

127-
runner = unittest.TextTestRunner()
128+
runner = unittest.TextTestRunner(stream=io.StringIO())
128129
runner.run(test_class('test_initializer'))
129130

130131
# GH-104090:

0 commit comments

Comments
 (0)