1 import os
2 import signal
3 import unittest
4 from test import support
5 from test.support import script_helper
6
7
8 @unittest.skipUnless(os.name == "posix", "only supported on Unix")
9 class ESC[4;38;5;81mEINTRTests(ESC[4;38;5;149munittestESC[4;38;5;149m.ESC[4;38;5;149mTestCase):
10
11 @unittest.skipUnless(hasattr(signal, "setitimer"), "requires setitimer()")
12 @support.requires_resource('walltime')
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 script = support.findfile("_test_eintr.py")
17 script_helper.run_test_script(script)
18
19
20 if __name__ == "__main__":
21 unittest.main()