]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-103716: Add test support requires fork in simple_subprocess (gh-103717)
authorAnkit Kumar Pandey <93041495+itsankitkp@users.noreply.github.com>
Sun, 23 Apr 2023 17:19:16 +0000 (22:49 +0530)
committerGitHub <noreply@github.com>
Sun, 23 Apr 2023 17:19:16 +0000 (11:19 -0600)
add requires fork as test case depends on this

Lib/test/test_socketserver.py

index 2fa5069423327a102e4865df1c38173b9ded4fff..71ed4c7d58dafc38d64e0a059b69238bfa1df233 100644 (file)
@@ -56,7 +56,7 @@ if HAVE_UNIX_SOCKETS and HAVE_FORKING:
                                     socketserver.UnixDatagramServer):
         pass
 
-
+@test.support.requires_fork()
 @contextlib.contextmanager
 def simple_subprocess(testcase):
     """Tests that a custom child process is not waited on (Issue 1540386)"""