From 86e1ec60f341b2f9dee79f8fa6c6a698994ee0cd Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 6 Mar 2008 11:33:07 +0100 Subject: [PATCH] test runner fixes --- runtests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runtests.py b/runtests.py index 0976a911..53f2412b 100644 --- a/runtests.py +++ b/runtests.py @@ -86,10 +86,11 @@ class CythonRunTestCase(unittest.TestCase): return "running " + self.module def runTest(self): - self.run(self) + self.run() def run(self, result=None): - sys.path.insert(0, self.rootdir) + if not sys.path or sys.path[0] != self.rootdir: + sys.path.insert(0, self.rootdir) if result is None: result = self.defaultTestResult() try: try: -- 2.26.2