From 7ed2175627dfa6683cba57203fa7d5f048e39077 Mon Sep 17 00:00:00 2001 From: Itamar Oren Date: Tue, 18 Jun 2024 11:07:51 -0700 Subject: [PATCH] Patch test_subprocess to work with Meta's build Summary: same as D52499785 for 3.12 Reviewed By: brittanyrey Differential Revision: D58622165 fbshipit-source-id: 444c4d65f1f032811250fc01bdf95808a87216ed --- Lib/test/test_subprocess.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 8b69cd03ba7..0162c805025 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -513,6 +513,10 @@ def test_executable_with_cwd(self): 'Test is not venv-compatible') @unittest.skipIf(sysconfig.is_python_build(), "need an installed Python. See #7774") + # START META PATCH (skip test if running out of buck-out) + @unittest.skipIf("/buck-out/" in sys.executable, + "Test is not compatible with running out of buck-out") + # END META PATCH def test_executable_without_cwd(self): # For a normal installation, it should work without 'cwd' # argument. For test runs in the build directory, see #7774.