Commit 6d8a2608 authored by Zachary Ware's avatar Zachary Ware

Issue #25800: Fix running test_capi directly

parent ced699b4
...@@ -257,7 +257,8 @@ class Test6012(unittest.TestCase): ...@@ -257,7 +257,8 @@ class Test6012(unittest.TestCase):
class EmbeddingTests(unittest.TestCase): class EmbeddingTests(unittest.TestCase):
def setUp(self): def setUp(self):
basepath = os.path.dirname(os.path.dirname(os.path.dirname(__file__))) here = os.path.abspath(__file__)
basepath = os.path.dirname(os.path.dirname(os.path.dirname(here)))
exename = "_testembed" exename = "_testembed"
if sys.platform.startswith("win"): if sys.platform.startswith("win"):
ext = ("_d" if "_d" in sys.executable else "") + ".exe" ext = ("_d" if "_d" in sys.executable else "") + ".exe"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment