Issue #25800: Fix running test_capi directly
This commit is contained in:
parent
ced699b4c7
commit
6d8a260845
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue