From: <cg...@us...> - 2008-12-05 04:06:27
|
Revision: 5698 http://jython.svn.sourceforge.net/jython/?rev=5698&view=rev Author: cgroves Date: 2008-12-05 04:06:23 +0000 (Fri, 05 Dec 2008) Log Message: ----------- Get test_jy_internals passing again Modified Paths: -------------- branches/newstyle-java-types/Lib/test/test_jy_internals.py branches/newstyle-java-types/src/org/python/core/IdImpl.java Modified: branches/newstyle-java-types/Lib/test/test_jy_internals.py =================================================================== --- branches/newstyle-java-types/Lib/test/test_jy_internals.py 2008-12-05 03:33:30 UTC (rev 5697) +++ branches/newstyle-java-types/Lib/test/test_jy_internals.py 2008-12-05 04:06:23 UTC (rev 5698) @@ -60,7 +60,7 @@ iarr = java.lang.Object.getClass(self.e) sdv = java.lang.Class.getMethod(long, 'scaledDoubleValue', [iarr]) import org.python.core.PyReflectedFunction as ReflFunc - self.sdv = ReflFunc(sdv) + self.sdv = ReflFunc([sdv]) def test_basic_roundtrip(self): e = self.e Modified: branches/newstyle-java-types/src/org/python/core/IdImpl.java =================================================================== --- branches/newstyle-java-types/src/org/python/core/IdImpl.java 2008-12-05 03:33:30 UTC (rev 5697) +++ branches/newstyle-java-types/src/org/python/core/IdImpl.java 2008-12-05 04:06:23 UTC (rev 5698) @@ -43,6 +43,11 @@ } } + // Used by test_jy_internals + public int _internal_map_size() { + return objHashcodeToPyId.size(); + } + public void put(Object key, Object val) { cleanup(); objHashcodeToPyId.put(new WeakIdKey(key), val); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |