[pypy-issue] Issue #2679: Random (and incorrect) ResourceWarnings in a large test suite (pypy/pypy)

Ned Batchelder issues-reply at bitbucket.org
Thu Oct 12 13:50:55 EDT 2017


New issue 2679: Random (and incorrect) ResourceWarnings in a large test suite
https://bitbucket.org/pypy/pypy/issues/2679/random-and-incorrect-resourcewarnings-in-a

Ned Batchelder:

Running the coverage.py test suite under pypy3 gives ResourceWarnings about unclosed files, but they are different each time, and point to places that seemingly cannot be unclosed files.

To reproduce (http://coverage.readthedocs.io/en/coverage-4.4.1/contributing.html#getting-the-code):
1. clone https://bitbucket.org/ned/coveragepy (there's github too if you prefer)
1. pip install -r requirements/dev.pip
1. tox -e pypy3

When I run it, I get output like https://gist.github.com/nedbat/b665b022e588357c78e18178dc542b9b

The fd seems to always be 10 or 11?




More information about the pypy-issue mailing list