From: <fwi...@us...> - 2008-08-12 18:57:24
|
Revision: 5161 http://jython.svn.sourceforge.net/jython/?rev=5161&view=rev Author: fwierzbicki Date: 2008-08-12 18:57:22 +0000 (Tue, 12 Aug 2008) Log Message: ----------- Since the comment for test_leading_newlines suggests that this may be CPython implementation specific, skip. 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-12 18:40:38 UTC (rev 5160) +++ branches/asm/Lib/test/test_compile.py 2008-08-12 18:57:22 UTC (rev 5161) @@ -176,10 +176,11 @@ # the first line of code starts after 256, correct line numbers # in tracebacks are still produced. def test_leading_newlines(self): - s256 = "".join(["\n"] * 256 + ["spam"]) - co = compile(s256, 'fn', 'exec') - self.assertEqual(co.co_firstlineno, 257) - self.assertEqual(co.co_lnotab, '') + if not test_support.is_jython: + s256 = "".join(["\n"] * 256 + ["spam"]) + co = compile(s256, 'fn', 'exec') + self.assertEqual(co.co_firstlineno, 257) + self.assertEqual(co.co_lnotab, '') def test_literals_with_leading_zeroes(self): for arg in ["077787", "0xj", "0x.", "0e", "090000000000000", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |