blob: 111ead365c0621c83e5092dd2be1a06521301d35 [file] [log] [blame]
Charles-François Natali6e6c59b2015-02-07 13:27:50 +00001import os
2import signal
3import unittest
4
Berker Peksagce643912015-05-06 06:33:17 +03005from test import support
6from test.support import script_helper
Charles-François Natali6e6c59b2015-02-07 13:27:50 +00007
8
9@unittest.skipUnless(os.name == "posix", "only supported on Unix")
10class EINTRTests(unittest.TestCase):
11
12 @unittest.skipUnless(hasattr(signal, "setitimer"), "requires setitimer()")
13 def test_all(self):
14 # Run the tester in a sub-process, to make sure there is only one
15 # thread (for reliable signal delivery).
16 tester = support.findfile("eintr_tester.py", subdir="eintrdata")
17 script_helper.assert_python_ok(tester)
18
19
20if __name__ == "__main__":
21 unittest.main()