[pypy-svn] r55531 - pypy/branch/js-refactoring/pypy/lang/js/test/ecma

fijal at codespeak.net fijal at codespeak.net
Tue Jun 3 21:50:19 CEST 2008


Author: fijal
Date: Tue Jun  3 21:50:16 2008
New Revision: 55531

Modified:
   pypy/branch/js-refactoring/pypy/lang/js/test/ecma/conftest.py
Log:
Always run Number tests. They should *always* pass.


Modified: pypy/branch/js-refactoring/pypy/lang/js/test/ecma/conftest.py
==============================================================================
--- pypy/branch/js-refactoring/pypy/lang/js/test/ecma/conftest.py	(original)
+++ pypy/branch/js-refactoring/pypy/lang/js/test/ecma/conftest.py	Tue Jun  3 21:50:16 2008
@@ -18,11 +18,17 @@
     except JsBaseExcept:
         return W_String("error")
 
+passing_tests = ['Number']
+
 class JSDirectory(py.test.collect.Directory):
 
     def filefilter(self, path):
         if not py.test.config.option.ecma:
-            return False 
+            for i in passing_tests:
+                if i in str(path):
+                    break
+            else:
+                return False
         if path.check(file=1):
             return (path.basename not in exclusionlist)  and (path.ext == '.js')
 
@@ -58,7 +64,11 @@
           
     def run(self):
         if not py.test.config.option.ecma:
-            py.test.skip("ECMA tests disabled, run with --ecma")
+            for i in passing_tests:
+                if i in self.listnames():
+                    break
+            else:
+                py.test.skip("ECMA tests disabled, run with --ecma")
         if py.test.config.option.collectonly:
             return
         self.init_interp()



More information about the Pypy-commit mailing list