Commit f5a99b86 authored by Stefan Behnel's avatar Stefan Behnel

fix PYTHONPATH setup if not previously set

parent 33abc027
...@@ -667,7 +667,10 @@ class EndToEndTest(unittest.TestCase): ...@@ -667,7 +667,10 @@ class EndToEndTest(unittest.TestCase):
os.environ['PYTHONPATH'] = self.cython_root + os.pathsep + (old_path or '') os.environ['PYTHONPATH'] = self.cython_root + os.pathsep + (old_path or '')
self.assertEqual(0, os.system(commands)) self.assertEqual(0, os.system(commands))
finally: finally:
os.environ['PYTHONPATH'] = old_path if old_path:
os.environ['PYTHONPATH'] = old_path
else:
del os.environ['PYTHONPATH']
# TODO: Support cython_freeze needed here as well. # TODO: Support cython_freeze needed here as well.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment