diff options
-rw-r--r-- | Lib/test/test_capi.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index eae3addcb1..6a8685c069 100644 --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -343,7 +343,8 @@ class Test6012(unittest.TestCase): class EmbeddingTests(unittest.TestCase): 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" if sys.platform.startswith("win"): ext = ("_d" if "_d" in sys.executable else "") + ".exe" |