An interpreted, interactive, object-oriented programming language
CentOS Sources
2017-08-01 71084d584ff953f5463757ec6536406320560b4d
commit | author | age
854cc6 1 diff --git a/Lib/test/test_thread.py b/Lib/test/test_thread.py
CS 2 index 413889a..fb312aa 100644
3 --- a/Lib/test/test_thread.py
4 +++ b/Lib/test/test_thread.py
5 @@ -237,7 +237,12 @@ class TestForkInThread(unittest.TestCase):
6              if pid == 0: # child
7                  os.close(self.read_fd)
8                  os.write(self.write_fd, "OK")
9 -                sys.exit(0)
10 +                # Exiting the thread normally in the child process can leave
11 +                # any additional threads (such as the one started by
12 +                # importing _tkinter) still running, and this can prevent
13 +                # the half-zombie child process from being cleaned up. See
14 +                # Issue #26456.
15 +                os._exit(0)
16              else: # parent
17                  os.close(self.write_fd)
18