Message12644

Author adamburke
Recipients adamburke
Date 2019-08-30.02:07:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567130848.56.0.0701952231953.issue2798@roundup.psfhosted.org>
In-reply-to
Content
The regrtest for Jython 2.7.2a+ will show the following failures under OpenJDK 1.7.0_75-b13 on Windows.

Tests are test_bytes test_codecencodings_tw test_lib2to3 test_shadowstr_jy test_str test_string test_sys test_unicode test_userstring

Shows as an OutOfMemoryError:

======================================================================
ERROR: test_replace_overflow (test.test_userstring.MutableStringTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Adam\jython\jython4\dist\Lib\test\string_tests.py", line 893, in test_replace_overflow
    self.checkraises(OverflowError, A2_16, "replace", "", A2_16)
  File "C:\Users\Adam\jython\jython4\dist\Lib\test\test_userstring.py", line 35, in checkraises
    self.assertRaises(
  File "C:\Users\Adam\jython\jython4\dist\Lib\unittest\case.py", line 476, in assertRaises
    callableObj(*args, **kwargs)
  File "C:\Users\Adam\jython\jython4\dist\Lib\UserString.py", line 108, in replace
    return self.__class__(self.data.replace(old, new, maxsplit))
OutOfMemoryError: java.lang.OutOfMemoryError: Java heap space

Found during this work https://github.com/jythontools/jython/pull/132 which also shows passing on Oracle 1.7.0_80-b15 and other versions.

Given the current out of life state of Java 7, we may not necessarily choose to fix this, but I thought it worth documenting here regardless.
History
Date User Action Args
2019-08-30 02:07:28adamburkesetrecipients: + adamburke
2019-08-30 02:07:28adamburkesetmessageid: <1567130848.56.0.0701952231953.issue2798@roundup.psfhosted.org>
2019-08-30 02:07:28adamburkelinkissue2798 messages
2019-08-30 02:07:28adamburkecreate