diff --git a/Lib/test/test_atexit.py b/Lib/test/test_atexit.py index e0feef7c653..7ac063cfc78 100644 --- a/Lib/test/test_atexit.py +++ b/Lib/test/test_atexit.py @@ -82,6 +82,7 @@ def f(): self.assertEqual(ret, 0) self.assertEqual(atexit._ncallbacks(), n) + @unittest.skipUnless(hasattr(os, "pipe"), "requires os.pipe()") def test_callback_on_subinterpreter_teardown(self): # This tests if a callback is called on # subinterpreter teardown.