[pypy-svn] r43906 - pypy/dist/pypy/translator/jvm/test

pdg at codespeak.net pdg at codespeak.net
Wed May 30 18:39:49 CEST 2007


Author: pdg
Date: Wed May 30 18:39:48 2007
New Revision: 43906

Modified:
   pypy/dist/pypy/translator/jvm/test/test_builtin.py
   pypy/dist/pypy/translator/jvm/test/test_contant.py
Log:
translator/jvm/test - updated test_builtin and test_constant

Modified: pypy/dist/pypy/translator/jvm/test/test_builtin.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/test/test_builtin.py	(original)
+++ pypy/dist/pypy/translator/jvm/test/test_builtin.py	Wed May 30 18:39:48 2007
@@ -6,4 +6,25 @@
 class TestJavaBuiltin(JvmTest, BaseTestRbuiltin):
     def test_os(self):
         py.test.skip("Jvm os support uncertain")
-
+    
+    def test_os_open(self):
+        py.test.skip("ll_os_open is not currently implemented in the Jvm backed")
+        
+    def test_os_getcwd(self):
+        py.test.skip("ll_os_getcwd is not currently implemented in the Jvm backed")
+    
+    def test_os_write(self):
+        py.test.skip("ll_os_open is not currently implemented in the Jvm backed")
+    
+    def test_os_write_single_char(self):
+        py.test.skip("ll_os_open is not currently implemented in the Jvm backed")
+    
+    def test_os_read(self):
+        py.test.skip("ll_os_open is not currently implemented in the Jvm backed")
+    
+    def test_os_path_exists(self):
+        py.test.skip("ll_os_stat is not currently implemented in the Jvm backed")
+    
+    def test_os_isdir(self):
+        py.test.skip("ll_os_stat is not currently implemented in the Jvm backed")
+    
\ No newline at end of file

Modified: pypy/dist/pypy/translator/jvm/test/test_contant.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/test/test_contant.py	(original)
+++ pypy/dist/pypy/translator/jvm/test/test_contant.py	Wed May 30 18:39:48 2007
@@ -101,25 +101,26 @@
         assert self.interpret(fn2, [1]) == True
 
     def test_customdict_circular(self):
-        from pypy.rlib.objectmodel import r_dict
-        def key_eq(a, b):
-            return a.x[0] == b.x[0]
-        def key_hash(a):
-            return ord(a.x[0])
-
-        class A:
-            def __init__(self, x):
-                self.x = x
-        a = A('foo')
-        a.dict = r_dict(key_eq, key_hash)
-        a.dict[a] = 42
-        def fn(b):
-            if b:
-                s = A('foo')
-            else:
-                s = A('bar')
-            return a.dict[s]
-        assert self.interpret(fn, [True]) == 42
+        py.test.skip("Circular dicts are not supported in JVM")
+#        from pypy.rlib.objectmodel import r_dict
+#        def key_eq(a, b):
+#            return a.x[0] == b.x[0]
+#        def key_hash(a):
+#            return ord(a.x[0])
+#
+#        class A:
+#            def __init__(self, x):
+#                self.x = x
+#        a = A('foo')
+#        a.dict = r_dict(key_eq, key_hash)
+#        a.dict[a] = 42
+#        def fn(b):
+#            if b:
+#                s = A('foo')
+#            else:
+#                s = A('bar')
+#            return a.dict[s]
+#        assert self.interpret(fn, [True]) == 42
 
     def test_multiple_step(self):
         from pypy.translator.oosupport import constant



More information about the Pypy-commit mailing list