Skip to content

Commit f4b1244

Browse files
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
1 parent a106343 commit f4b1244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Lib/test/test_embed.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def setUp(self):
6161
else:
6262
exepath = os.path.join(builddir, 'Programs')
6363
self.test_exe = exe = os.path.join(exepath, exename)
64-
if not os.path.exists(exe):
64+
if exepath != support.REPO_ROOT or not os.path.exists(exe):
6565
self.skipTest("%r doesn't exist" % exe)
6666
# This is needed otherwise we get a fatal error:
6767
# "Py_Initialize: Unable to get the locale encoding

0 commit comments

Comments
 (0)