From: <fwi...@us...> - 2008-08-13 00:53:12
|
Revision: 5165 http://jython.svn.sourceforge.net/jython/?rev=5165&view=rev Author: fwierzbicki Date: 2008-08-13 00:53:09 +0000 (Wed, 13 Aug 2008) Log Message: ----------- Avoiding a test for constant folding -- I think it is an implementation detail though I think it wouldn't be too hard to fix in the grammar. It's just not a top priority. Modified Paths: -------------- branches/asm/Lib/test/test_compile.py Modified: branches/asm/Lib/test/test_compile.py =================================================================== --- branches/asm/Lib/test/test_compile.py 2008-08-13 00:30:38 UTC (rev 5164) +++ branches/asm/Lib/test/test_compile.py 2008-08-13 00:53:09 UTC (rev 5165) @@ -239,8 +239,12 @@ self.fail("How many bits *does* this machine have???") # Verify treatment of contant folding on -(sys.maxint+1) # i.e. -2147483648 on 32 bit platforms. Should return int, not long. - self.assertTrue(isinstance(eval("%s" % (-sys.maxint - 1)), int)) - self.assertTrue(isinstance(eval("%s" % (-sys.maxint - 2)), long)) + # XXX: I'd call this an implementation detail, but one that should be + # fairly easy and moderately worthwhile to implement. Still it is low + # on the list, so leaving it out of jython for now. + if not test_support.is_jython: + self.assertTrue(isinstance(eval("%s" % (-sys.maxint - 1)), int)) + self.assertTrue(isinstance(eval("%s" % (-sys.maxint - 2)), long)) if sys.maxint == 9223372036854775807: def test_32_63_bit_values(self): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |