From: Stefan Behnel Date: Thu, 6 Mar 2008 10:33:07 +0000 (+0100) Subject: test runner fixes X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=86e1ec60f341b2f9dee79f8fa6c6a698994ee0cd;p=cython.git test runner fixes --- 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: