[Python-checkins] cpython (3.4): Issue #25800: Fix running test_capi directly
zach.ware
python-checkins at python.org
Sat Dec 5 01:19:35 EST 2015
https://hg.python.org/cpython/rev/fae5186562d0
changeset: 99446:fae5186562d0
branch: 3.4
parent: 99439:b63fd82a8528
user: Zachary Ware <zachary.ware at gmail.com>
date: Sat Dec 05 00:16:55 2015 -0600
summary:
Issue #25800: Fix running test_capi directly
files:
Lib/test/test_capi.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
--- a/Lib/test/test_capi.py
+++ b/Lib/test/test_capi.py
@@ -257,7 +257,8 @@
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"
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list