Issue #25800: Fix running test_capi directly

This commit is contained in:
Zachary Ware 2015-12-05 00:16:55 -06:00
parent ced699b4c7
commit 6d8a260845
1 changed files with 2 additions and 1 deletions

View File

@ -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"