blob: b61cdfa0a122d982d9bd59b6bc9c9e70f809a941 [file] [log] [blame]
Charles-François Natali6e6c59b2015-02-07 13:27:50 +00001import os
2import signal
Victor Stinneraa8ae902018-12-06 00:18:30 +01003import subprocess
4import sys
Charles-François Natali6e6c59b2015-02-07 13:27:50 +00005import unittest
6
Berker Peksagce643912015-05-06 06:33:17 +03007from test import support
8from test.support import script_helper
Charles-François Natali6e6c59b2015-02-07 13:27:50 +00009
10
11@unittest.skipUnless(os.name == "posix", "only supported on Unix")
12class EINTRTests(unittest.TestCase):
13
14 @unittest.skipUnless(hasattr(signal, "setitimer"), "requires setitimer()")
15 def test_all(self):
16 # Run the tester in a sub-process, to make sure there is only one
17 # thread (for reliable signal delivery).
Victor Stinnerf7049b52020-12-15 16:08:16 +010018 script = support.findfile("_test_eintr.py")
19 script_helper.run_test_script(script)
Charles-François Natali6e6c59b2015-02-07 13:27:50 +000020
21
22if __name__ == "__main__":
23 unittest.main()