[Python-checkins] gh-103716: Add test support requires fork in simple_subprocess (gh-103717)

corona10 webhook-mailer at python.org
Sun Apr 23 13:19:23 EDT 2023


https://github.com/python/cpython/commit/777bdff0ec4c21176ddf61e07bc75d170bc65d54
commit: 777bdff0ec4c21176ddf61e07bc75d170bc65d54
branch: main
author: Ankit Kumar Pandey <93041495+itsankitkp at users.noreply.github.com>
committer: corona10 <donghee.na92 at gmail.com>
date: 2023-04-23T11:19:16-06:00
summary:

gh-103716: Add test support requires fork in simple_subprocess  (gh-103717)

add requires fork as test case depends on this

files:
M Lib/test/test_socketserver.py

diff --git a/Lib/test/test_socketserver.py b/Lib/test/test_socketserver.py
index 2fa506942332..71ed4c7d58da 100644
--- a/Lib/test/test_socketserver.py
+++ b/Lib/test/test_socketserver.py
@@ -56,7 +56,7 @@ class ForkingUnixDatagramServer(socketserver.ForkingMixIn,
                                     socketserver.UnixDatagramServer):
         pass
 
-
+ at test.support.requires_fork()
 @contextlib.contextmanager
 def simple_subprocess(testcase):
     """Tests that a custom child process is not waited on (Issue 1540386)"""



More information about the Python-checkins mailing list