From 6d8a26084541522495fdf3fa00875c144ea3450b Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Sat, 5 Dec 2015 00:16:55 -0600 Subject: [PATCH] Issue #25800: Fix running test_capi directly --- Lib/test/test_capi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index 36c62376b1..a0c1e79b35 100644 --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -257,7 +257,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" -- 2.40.0