From: <nr...@us...> - 2008-08-09 23:40:49
|
Revision: 5129 http://jython.svn.sourceforge.net/jython/?rev=5129&view=rev Author: nriley Date: 2008-08-09 23:40:43 +0000 (Sat, 09 Aug 2008) Log Message: ----------- Don't try tests expecting MemoryError which can pass with large Java heaps. Modified Paths: -------------- branches/asm/Lib/test/test_builtin.py branches/asm/Lib/test/test_format.py Modified: branches/asm/Lib/test/test_builtin.py =================================================================== --- branches/asm/Lib/test/test_builtin.py 2008-08-09 23:02:50 UTC (rev 5128) +++ branches/asm/Lib/test/test_builtin.py 2008-08-09 23:40:43 UTC (rev 5129) @@ -938,7 +938,7 @@ self.assertEqual(list(''), []) self.assertEqual(list('spam'), ['s', 'p', 'a', 'm']) - if sys.maxint == 0x7fffffff: + if sys.maxint == 0x7fffffff and not test.test_support.is_jython: # This test can currently only work on 32-bit machines. # XXX If/when PySequence_Length() returns a ssize_t, it should be # XXX re-enabled. Modified: branches/asm/Lib/test/test_format.py =================================================================== --- branches/asm/Lib/test/test_format.py 2008-08-09 23:02:50 UTC (rev 5128) +++ branches/asm/Lib/test/test_format.py 2008-08-09 23:40:43 UTC (rev 5129) @@ -1,4 +1,4 @@ -from test.test_support import verbose, have_unicode, TestFailed +from test.test_support import verbose, have_unicode, TestFailed, is_jython import sys # test string formatting operator (I am not sure if this is being tested @@ -243,7 +243,7 @@ #test_exc('%o', Foobar(), TypeError, # "expected string or Unicode object, long found") -if sys.maxint == 2**31-1: +if sys.maxint == 2**31-1 and not is_jython: # crashes 2.2.1 and earlier: try: "%*d"%(sys.maxint, -127) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |