blob: 528147802ba47e8d91ce6cfe0405927801657921 [file] [log] [blame]
Charles-François Natali6e6c59b2015-02-07 13:27:50 +00001import os
2import signal
3import unittest
Berker Peksagce643912015-05-06 06:33:17 +03004from test import support
5from test.support import script_helper
Charles-François Natali6e6c59b2015-02-07 13:27:50 +00006
7
8@unittest.skipUnless(os.name == "posix", "only supported on Unix")
9class EINTRTests(unittest.TestCase):
10
11 @unittest.skipUnless(hasattr(signal, "setitimer"), "requires setitimer()")
12 def test_all(self):
13 # Run the tester in a sub-process, to make sure there is only one
14 # thread (for reliable signal delivery).
Victor Stinnerf7049b52020-12-15 16:08:16 +010015 script = support.findfile("_test_eintr.py")
16 script_helper.run_test_script(script)
Charles-François Natali6e6c59b2015-02-07 13:27:50 +000017
18
19if __name__ == "__main__":
20 unittest.main()