Update test_atexit from cpython 3.11.2

This commit is contained in:
CPython Developers
2023-03-03 16:30:09 +09:00
committed by LYK
parent 822f6a9fa6
commit ad05321d94

View File

@@ -82,6 +82,7 @@ class SubinterpreterTest(unittest.TestCase):
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.