[pypy-svn] r14051 - pypy/dist/lib-python

arigo at codespeak.net arigo at codespeak.net
Fri Jul 1 19:45:58 CEST 2005


Author: arigo
Date: Fri Jul  1 19:45:58 2005
New Revision: 14051

Modified:
   pypy/dist/lib-python/conftest.py
Log:
Sanity check.  (Should be better handled, I suppose; for now let's try to 
avoid long and tedious debugging caused by this.)



Modified: pypy/dist/lib-python/conftest.py
==============================================================================
--- pypy/dist/lib-python/conftest.py	(original)
+++ pypy/dist/lib-python/conftest.py	Fri Jul  1 19:45:58 2005
@@ -919,3 +919,14 @@
         result['exit status'] = exit_status 
         result['outcome'] = outcome 
         return result
+
+
+#
+# Sanity check  (could be done more nicely too)
+#
+import os
+if os.path.samefile(os.getcwd(), str(regrtestdir.dirpath())):
+    raise NotImplementedError(
+        "Cannot run py.test with this current directory:\n"
+        "the app-level sys.path will contain %s before %s)." % (
+            regrtestdir.dirpath(), modregrtestdir.dirpath()))



More information about the Pypy-commit mailing list