[pypy-svn] r11850 - pypy/dist/pypy/tool/pytest

pedronis at codespeak.net pedronis at codespeak.net
Tue May 3 14:20:43 CEST 2005


Author: pedronis
Date: Tue May  3 14:20:42 2005
New Revision: 11850

Modified:
   pypy/dist/pypy/tool/pytest/regrverbose.py
Log:
some tests (e.g. test_pkg) when run as __main__ consider they args!



Modified: pypy/dist/pypy/tool/pytest/regrverbose.py
==============================================================================
--- pypy/dist/pypy/tool/pytest/regrverbose.py	(original)
+++ pypy/dist/pypy/tool/pytest/regrverbose.py	Tue May  3 14:20:42 2005
@@ -1,4 +1,5 @@
 import sys
 from test import test_support 
-test_support.verbose = False 
-execfile(sys.argv[1])
+test_support.verbose = False
+sys.argv[:] = sys.argv[1:]
+execfile(sys.argv[0])



More information about the Pypy-commit mailing list