From: Zachary Ware Date: Sat, 5 Dec 2015 06:16:55 +0000 (-0600) Subject: Issue #25800: Fix running test_capi directly X-Git-Tag: v3.4.4rc1~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d8a26084541522495fdf3fa00875c144ea3450b;p=python Issue #25800: Fix running test_capi directly --- 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"