Skip to content

Commit fea3cc2

Browse files
authored
Merge pull request #4814 from Masorubka1/test_eintr
Update test_eintr.py from Cpython v3.11.2
2 parents 1251750 + 68ddbf8 commit fea3cc2

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Lib/test/test_eintr.py

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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 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).
15+
script = support.findfile("_test_eintr.py")
16+
script_helper.run_test_script(script)
17+
18+
19+
if __name__ == "__main__":
20+
unittest.main()

0 commit comments

Comments
 (0)