Skip to content

Commit a794188

Browse files
committed
Check for os.pipe() in the test.
1 parent 475538a commit a794188

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/test/test_atexit.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,8 @@ def start_thread():
102102
self.assertEqual(stderr, b"")
103103

104104
@threading_helper.requires_working_threading()
105+
@unittest.skipUnless(hasattr(os, "pipe"), "requires os.pipe()")
105106
def test_thread_created_in_atexit_subinterpreter(self):
106-
import os
107-
108107
try:
109108
from concurrent import interpreters
110109
except ImportError:

0 commit comments

Comments
 (0)