Skip to content

Commit a931bdf

Browse files
authored
Skip test_wait_empty for non process types
1 parent 360ef28 commit a931bdf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/_test_multiprocessing.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3892,11 +3892,14 @@ def test_context(self):
38923892

38933893
@warnings_helper.ignore_fork_in_thread_deprecation_warnings()
38943894
def test_wait_empty(self):
3895+
if self.TYPE != 'processes':
3896+
self.skipTest('test not appropriate for {}'.format(self.TYPE))
38953897
# gh-145587: wait() with empty list should respect timeout
38963898
timeout = 0.5
38973899
start = time.monotonic()
38983900
res = self.connection.wait([], timeout=timeout)
38993901
duration = time.monotonic() - start
3902+
39003903
self.assertEqual(res, [])
39013904
self.assertGreaterEqual(duration, timeout - 0.1)
39023905

0 commit comments

Comments
 (0)