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

antocuni at codespeak.net antocuni at codespeak.net
Tue Sep 4 19:21:29 CEST 2007


Author: antocuni
Date: Tue Sep  4 19:21:28 2007
New Revision: 46307

Modified:
   pypy/dist/pypy/translator/jvm/test/test_constant.py
Log:
a failing test: JVM does not like classes to be too large, so we need
to think a way to split the Constant class into multiple ones.



Modified: pypy/dist/pypy/translator/jvm/test/test_constant.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/test/test_constant.py	(original)
+++ pypy/dist/pypy/translator/jvm/test/test_constant.py	Tue Sep  4 19:21:28 2007
@@ -129,3 +129,14 @@
         def fn(x, y):
             return c1[x] + c2[y]
         assert self.interpret(fn, [0, 0]) == 3
+
+    def test_many_constants(self):
+        py.test.skip('fixme!')
+        N = 7500
+        class A:
+            pass
+        mylist = [A() for i in range(N)]
+        def fn(x):
+            return mylist[x]
+        res = self.interpret(fn, [0])
+        assert self.class_name(res) == 'A'



More information about the Pypy-commit mailing list