summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2021-10-19 20:11:16 (GMT)
committerGitHub <noreply@github.com>2021-10-19 20:11:16 (GMT)
commitf4b12440cf24d7636755aac5b2645e47713557c7 (patch)
tree06def2df176fce6aa90e934e8c869ec1efa9b1f6
parenta106343f632a99c8ebb0136fa140cf189b4a6a57 (diff)
downloadcpython-f4b12440cf24d7636755aac5b2645e47713557c7.zip
cpython-f4b12440cf24d7636755aac5b2645e47713557c7.tar.gz
cpython-f4b12440cf24d7636755aac5b2645e47713557c7.tar.bz2
bpo-45506: Go back to not running most of test_embed in out-of-tree builds. (gh-29063)
In gh-28954 I adjusted how test_embed determines if it should be skipped. That broke out-of-tree builds. This change fixes them. https://bugs.python.org/issue45506
-rw-r--r--Lib/test/test_embed.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py
index 4b4396e..4186f01 100644
--- a/Lib/test/test_embed.py
+++ b/Lib/test/test_embed.py
@@ -61,7 +61,7 @@ class EmbeddingTestsMixin:
else:
exepath = os.path.join(builddir, 'Programs')
self.test_exe = exe = os.path.join(exepath, exename)
- if not os.path.exists(exe):
+ if exepath != support.REPO_ROOT or not os.path.exists(exe):
self.skipTest("%r doesn't exist" % exe)
# This is needed otherwise we get a fatal error:
# "Py_Initialize: Unable to get the locale encoding