summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2021-11-03 17:47:16 (GMT)
committerGitHub <noreply@github.com>2021-11-03 17:47:16 (GMT)
commit7b438282d39e742b2628a32e7c6699a140ff4cfb (patch)
tree2551442909dda003bac9a88c36810567ac5bdf44
parentacc89db9233abf4d903af9a7595a2ed7478fe7d3 (diff)
downloadcpython-7b438282d39e742b2628a32e7c6699a140ff4cfb.zip
cpython-7b438282d39e742b2628a32e7c6699a140ff4cfb.tar.gz
cpython-7b438282d39e742b2628a32e7c6699a140ff4cfb.tar.bz2
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
-rw-r--r--Lib/test/test_embed.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py
index 3a00efa..a0d6150 100644
--- a/Lib/test/test_embed.py
+++ b/Lib/test/test_embed.py
@@ -58,10 +58,12 @@ class EmbeddingTestsMixin:
ext = ("_d" if debug_build(sys.executable) else "") + ".exe"
exename += ext
exepath = builddir
+ expecteddir = support.REPO_ROOT
else:
exepath = os.path.join(builddir, 'Programs')
+ expecteddir = os.path.join(support.REPO_ROOT, 'Programs')
self.test_exe = exe = os.path.join(exepath, exename)
- if exepath != support.REPO_ROOT or not os.path.exists(exe):
+ if exepath != expecteddir 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