summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2015-12-05 06:16:55 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2015-12-05 06:16:55 (GMT)
commit6d8a26084541522495fdf3fa00875c144ea3450b (patch)
treefc7cbf9c27ba95a4581d9312a3ad08c4f5a1d508
parentced699b4c7e79e0a53e3ca7f2d789b761d4a9e76 (diff)
downloadcpython-6d8a26084541522495fdf3fa00875c144ea3450b.zip
cpython-6d8a26084541522495fdf3fa00875c144ea3450b.tar.gz
cpython-6d8a26084541522495fdf3fa00875c144ea3450b.tar.bz2
Issue #25800: Fix running test_capi directly
-rw-r--r--Lib/test/test_capi.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
index 36c62376..a0c1e79 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"