[pypy-svn] r14049 - pypy/branch/dist-2.4.1/lib-python

arigo at codespeak.net arigo at codespeak.net
Fri Jul 1 19:44:40 CEST 2005


Author: arigo
Date: Fri Jul  1 19:44:37 2005
New Revision: 14049

Modified:
   pypy/branch/dist-2.4.1/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/branch/dist-2.4.1/lib-python/conftest.py
==============================================================================
--- pypy/branch/dist-2.4.1/lib-python/conftest.py	(original)
+++ pypy/branch/dist-2.4.1/lib-python/conftest.py	Fri Jul  1 19:44:37 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