Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d687d3f

Browse filesBrowse 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
Copy full SHA for d687d3f

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎Lib/test/test_concurrent_futures/test_init.py

Copy file name to clipboardExpand all lines: Lib/test/test_concurrent_futures/test_init.py
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.