[pypy-svn] r78380 - pypy/branch/fast-forward/pypy/translator/goal/test2

afa at codespeak.net afa at codespeak.net
Wed Oct 27 23:20:51 CEST 2010


Author: afa
Date: Wed Oct 27 23:20:49 2010
New Revision: 78380

Modified:
   pypy/branch/fast-forward/pypy/translator/goal/test2/test_app_main.py
Log:
Fix test when PYTHONPATH is not set


Modified: pypy/branch/fast-forward/pypy/translator/goal/test2/test_app_main.py
==============================================================================
--- pypy/branch/fast-forward/pypy/translator/goal/test2/test_app_main.py	(original)
+++ pypy/branch/fast-forward/pypy/translator/goal/test2/test_app_main.py	Wed Oct 27 23:20:49 2010
@@ -489,7 +489,8 @@
                 yield
             finally:
                 old_cwd.chdir()
-                os.putenv('PYTHONPATH', old_pythonpath)
+                if old_pythonpath is not None:
+                    os.putenv('PYTHONPATH', old_pythonpath)
         
         tmpdir.join('site.py').write('print "SHOULD NOT RUN"')
         runme_py = tmpdir.join('runme.py')



More information about the Pypy-commit mailing list