Mailing List Archive

bpo-45506: Go back to not running most of test_embed in out-of-tree builds. (gh-29063)
https://github.com/python/cpython/commit/f4b12440cf24d7636755aac5b2645e47713557c7
commit: f4b12440cf24d7636755aac5b2645e47713557c7
branch: main
author: Eric Snow <ericsnowcurrently@gmail.com>
committer: ericsnowcurrently <ericsnowcurrently@gmail.com>
date: 2021-10-19T14:11:16-06:00
summary:

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

files:
M Lib/test/test_embed.py

diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py
index 4b4396efb5cad..4186f011e2388 100644
--- a/Lib/test/test_embed.py
+++ b/Lib/test/test_embed.py
@@ -61,7 +61,7 @@ def setUp(self):
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

_______________________________________________
Python-checkins mailing list
Python-checkins@python.org
https://mail.python.org/mailman/listinfo/python-checkins