Issue2049

classification
Title: Unexpected exceptions instead of OverflowError
Type: behaviour Severity: normal
Components: Core Versions: Jython 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Arfrever, serhiy.storchaka
Priority: Keywords:

Created on 2013-05-12.20:07:52 by serhiy.storchaka, last changed 2013-05-20.09:47:10 by Arfrever.

Messages
msg8012 (view) Author: Serhiy Storchaka (serhiy.storchaka) Date: 2013-05-12.20:07:51
On 32-bit Linux with 2 GiB of memory some tests failed.

======================================================================
ERROR: test_expandtabs (test.test_str.StrTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/jython/dist/Lib/test/string_tests.py", line 343, in test_expandtabs
    self.checkraises(OverflowError,
  File "/home/serhiy/py/jython/dist/Lib/test/string_tests.py", line 71, in checkraises
    self.assertRaises(
  File "/home/serhiy/py/jython/dist/Lib/unittest/case.py", line 476, in assertRaises
    callableObj(*args, **kwargs)
OutOfMemoryError: java.lang.OutOfMemoryError: Java heap space

======================================================================
ERROR: test_expandtabs_overflows_gracefully (test.test_str.StrTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/jython/dist/Lib/test/test_str.py", line 107, in test_expandtabs_overflows_gracefully
    self.assertRaises(OverflowError, 't\tt\t'.expandtabs, sys.maxint)
  File "/home/serhiy/py/jython/dist/Lib/unittest/case.py", line 476, in assertRaises
    callableObj(*args, **kwargs)
OutOfMemoryError: java.lang.OutOfMemoryError: Java heap space

======================================================================
ERROR: test_replace_overflow (test.test_str.StrTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/jython/dist/Lib/test/string_tests.py", line 774, in test_replace_overflow
    self.checkraises(OverflowError, A2_16, "replace", "", A2_16)
  File "/home/serhiy/py/jython/dist/Lib/test/string_tests.py", line 71, in checkraises
    self.assertRaises(
  File "/home/serhiy/py/jython/dist/Lib/unittest/case.py", line 476, in assertRaises
    callableObj(*args, **kwargs)
OutOfMemoryError: java.lang.OutOfMemoryError: Java heap space

======================================================================
ERROR: test_expandtabs (test.test_unicode.UnicodeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/jython/dist/Lib/test/string_tests.py", line 343, in test_expandtabs
    self.checkraises(OverflowError,
  File "/home/serhiy/py/jython/dist/Lib/test/string_tests.py", line 71, in checkraises
    self.assertRaises(
  File "/home/serhiy/py/jython/dist/Lib/unittest/case.py", line 476, in assertRaises
    callableObj(*args, **kwargs)
OutOfMemoryError: java.lang.OutOfMemoryError: Java heap space

======================================================================
ERROR: test_replace_overflow (test.test_unicode.UnicodeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/jython/dist/Lib/test/string_tests.py", line 774, in test_replace_overflow
    self.checkraises(OverflowError, A2_16, "replace", "", A2_16)
  File "/home/serhiy/py/jython/dist/Lib/test/string_tests.py", line 71, in checkraises
    self.assertRaises(
  File "/home/serhiy/py/jython/dist/Lib/unittest/case.py", line 476, in assertRaises
    callableObj(*args, **kwargs)
OutOfMemoryError: java.lang.OutOfMemoryError: Java heap space

======================================================================
ERROR: test_replace_overflow (test.test_bytes.ByteArrayAsStringTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/jython/dist/Lib/test/string_tests.py", line 774, in test_replace_overflow
    self.checkraises(OverflowError, A2_16, "replace", "", A2_16)
  File "/home/serhiy/py/jython/dist/Lib/test/string_tests.py", line 71, in checkraises
    self.assertRaises(
  File "/home/serhiy/py/jython/dist/Lib/unittest/case.py", line 476, in assertRaises
    callableObj(*args, **kwargs)
OutOfMemoryError: java.lang.OutOfMemoryError: Java heap space

======================================================================
ERROR: test_expandtabs (test.test_bytes.BytearrayPEP3137Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/jython/dist/Lib/test/buffer_tests.py", line 176, in test_expandtabs
    self.assertRaises(OverflowError,
  File "/home/serhiy/py/jython/dist/Lib/unittest/case.py", line 476, in assertRaises
    callableObj(*args, **kwargs)
NegativeArraySizeException: java.lang.NegativeArraySizeException
History
Date User Action Args
2013-05-20 09:47:10Arfreversetnosy: + Arfrever
2013-05-12 20:07:52serhiy.storchakacreate