Skip to content

Commit 7b43828

Browse files
bpo-45506: Stop skipping test_embed. (gh-29300)
In gh-29063 I ended up disabling test_embed on non-Windows by accident. This gets it running again. https://bugs.python.org/issue45506
1 parent acc89db commit 7b43828

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_embed.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,12 @@ def setUp(self):
5858
ext = ("_d" if debug_build(sys.executable) else "") + ".exe"
5959
exename += ext
6060
exepath = builddir
61+
expecteddir = support.REPO_ROOT
6162
else:
6263
exepath = os.path.join(builddir, 'Programs')
64+
expecteddir = os.path.join(support.REPO_ROOT, 'Programs')
6365
self.test_exe = exe = os.path.join(exepath, exename)
64-
if exepath != support.REPO_ROOT or not os.path.exists(exe):
66+
if exepath != expecteddir or not os.path.exists(exe):
6567
self.skipTest("%r doesn't exist" % exe)
6668
# This is needed otherwise we get a fatal error:
6769
# "Py_Initialize: Unable to get the locale encoding

0 commit comments

Comments
 (0)