Skip to content

Conversation

kondela
Copy link
Contributor

@kondela kondela commented Nov 17, 2020

This PR basically fixes #3002 and makes some parts of code more readable. We could probably do something similar for other tests that rely on get_tmp_dir() just by using what's done here, i.e. setUpClass(), tearDown(), and tearDownClass()

Edit: After code review I changed it to use get_tmp_dir() instead of setUpClass(), tearDown(), and tearDownClass()

Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I left a few comments for your consideration. Let me know what you think.

Also you got conflicts with master due to my previous PR (#2988). Let me know if you need any help resolving the conflicts, happy to help.

@kondela kondela requested a review from datumbox November 29, 2020 16:06
Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @kondela.

@datumbox datumbox merged commit 8e24479 into pytorch:master Nov 30, 2020
vfdev-5 pushed a commit to Quansight/vision that referenced this pull request Dec 4, 2020
…ytorch#3018)

* Fix writing to files by using get_tmp_dir()

* Add ImageReadMode to imports

* Fix failing test due to incorrect image path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor tests in test_image.py to avoid writes inside assets
5 participants