[pypy-issue] Issue #3094: sys.setrecursionlimit(int(10e8)) results in MemoryError since 7.2 release. (pypy/pypy)
Chris Withers
issues-reply at bitbucket.org
Wed Oct 16 03:12:28 EDT 2019
New issue 3094: sys.setrecursionlimit(int(10e8)) results in MemoryError since 7.2 release.
https://bitbucket.org/pypy/pypy/issues/3094/syssetrecursionlimit-int-10e8-results-in
Chris Withers:
The tests for the mock backport have started failing on pypy since this release, for both 2.7 and 3.6:
[https://circleci.com/gh/testing-cabal/mock/3099](https://circleci.com/gh/testing-cabal/mock/3099)
[https://circleci.com/gh/testing-cabal/mock/3093](https://circleci.com/gh/testing-cabal/mock/3093)
```
def test_copy(self):
current = sys.getrecursionlimit()
self.addCleanup(sys.setrecursionlimit, current)
# can't use sys.maxint as this doesn't exist in Python 3
> sys.setrecursionlimit(int(10e8))
E MemoryError
```
What would be the recommended way to fix this?
More information about the pypy-issue
mailing list