Closed tdrhq closed 10 months ago
@xiphirx has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@xiphirx merged this pull request in facebook/screenshot-tests-for-android@f4568d4b696fd6f5b48799dc69dbe55ff6e3e641.
On my version of Python/PIL it crashes with:
The
with
block should handle the closing.Test Plan: Before applying this change, did
./gradlew :*:publishToMavenLocal
and then ran./gradlew :sample:recordDebugAndroidTestScreenshotTests
. Saw crash. Made changed. Re-ran publishToMavenLocal and the tests again, and it passes this time.