[pypy-svn] r46282 - in pypy/dist/pypy/translator/jvm: . test

antocuni at codespeak.net antocuni at codespeak.net
Mon Sep 3 17:14:12 CEST 2007


Author: antocuni
Date: Mon Sep  3 17:14:11 2007
New Revision: 46282

Modified:
   pypy/dist/pypy/translator/jvm/generator.py
   pypy/dist/pypy/translator/jvm/test/test_dict.py
Log:
bugfix && test passes



Modified: pypy/dist/pypy/translator/jvm/generator.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/generator.py	(original)
+++ pypy/dist/pypy/translator/jvm/generator.py	Mon Sep  3 17:14:11 2007
@@ -712,6 +712,8 @@
         """ Loads from jvm slot #varidx, which is expected to hold a value of
         type vartype """
         assert varidx < self.curfunc.next_offset
+        if jvartype is jVoid:
+            return
         opc = LOAD.for_type(jvartype)
         self.add_comment("     load_jvm_jar: jvartype=%s varidx=%s" % (
             repr(jvartype), repr(varidx)))

Modified: pypy/dist/pypy/translator/jvm/test/test_dict.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/test/test_dict.py	(original)
+++ pypy/dist/pypy/translator/jvm/test/test_dict.py	Mon Sep  3 17:14:11 2007
@@ -10,8 +10,7 @@
         py.test.skip("JVM doesn't support recursive dicts")
 
 class TestJvmEmptyDict(JvmTest, oodict.BaseTestEmptyDict):
-    def test_iterate_over_empty_dict(self):
-        py.test.skip("Iteration over empty dict is not supported, yet")
+    pass
 
 class TestJvmConstantDict(JvmTest, oodict.BaseTestConstantDict):
     pass



More information about the Pypy-commit mailing list