[pypy-svn] r39171 - pypy/dist/pypy/lang/js/test/ecma

fijal at codespeak.net fijal at codespeak.net
Sun Feb 18 19:19:33 CET 2007


Author: fijal
Date: Sun Feb 18 19:19:32 2007
New Revision: 39171

Modified:
   pypy/dist/pypy/lang/js/test/ecma/conftest.py
Log:
Fix conftest a bit. Now it fails on module level


Modified: pypy/dist/pypy/lang/js/test/ecma/conftest.py
==============================================================================
--- pypy/dist/pypy/lang/js/test/ecma/conftest.py	(original)
+++ pypy/dist/pypy/lang/js/test/ecma/conftest.py	Sun Feb 18 19:19:32 2007
@@ -21,7 +21,7 @@
 
 
 
-class JSTestFile(py.test.collect.Collector):
+class JSTestFile(py.test.collect.Module):
     def init_interp(cls):
         cls.interp = Interpreter()
         ctx = cls.interp.global_context
@@ -38,6 +38,8 @@
     def run(self):
         if not option.ecma:
             py.test.skip("ECMA tests disabled, run with --ecma")
+        if option.collectonly:
+            return
         #actually run the file :)
         t = load_source(self.filepath.read())
         try:



More information about the Pypy-commit mailing list