[pypy-svn] r74291 - pypy/branch/py12/py/bin

hpk at codespeak.net hpk at codespeak.net
Fri Apr 30 17:11:49 CEST 2010


Author: hpk
Date: Fri Apr 30 17:11:47 2010
New Revision: 74291

Modified:
   pypy/branch/py12/py/bin/py.test
Log:
tweak py/bin/py.test to ignore warnings issued from setuptools 
that the inlined py lib shadows a properly installed one. 


Modified: pypy/branch/py12/py/bin/py.test
==============================================================================
--- pypy/branch/py12/py/bin/py.test	(original)
+++ pypy/branch/py12/py/bin/py.test	Fri Apr 30 17:11:47 2010
@@ -1,3 +1,10 @@
 #!/usr/bin/env python
+
+# somewhat PYPY specific hack:
+# let's make sure setuptools does show a warning when our inlined 'py'
+# version shadows a properly installed one.
+import warnings
+warnings.filterwarnings("ignore", 
+    "Module py was already imported", category=UserWarning)
 from _findpy import py
-py.cmdline.pytest()
\ No newline at end of file
+py.cmdline.pytest()



More information about the Pypy-commit mailing list