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