diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2017-11-19 21:39:41 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2017-11-19 21:39:41 -0500 |
| commit | e4572e8c828cf5c82e072e01672283b5f27396a4 (patch) | |
| tree | e8cc8df65484f1f29d9e6bd0a27a362eadddd068 /pkg_resources/tests | |
| parent | dcb24ad15465c266a3f258471766fbbe8fc8a42e (diff) | |
| parent | d1cef0c5aa0ca473d4b5fef6b11e5508a37663a2 (diff) | |
| download | external_python_setuptools-e4572e8c828cf5c82e072e01672283b5f27396a4.tar.gz external_python_setuptools-e4572e8c828cf5c82e072e01672283b5f27396a4.tar.bz2 external_python_setuptools-e4572e8c828cf5c82e072e01672283b5f27396a4.zip | |
Merge branch 'master' into drop-py26
Diffstat (limited to 'pkg_resources/tests')
| -rw-r--r-- | pkg_resources/tests/test_pkg_resources.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg_resources/tests/test_pkg_resources.py b/pkg_resources/tests/test_pkg_resources.py index 49bf7a04..c6a7ac97 100644 --- a/pkg_resources/tests/test_pkg_resources.py +++ b/pkg_resources/tests/test_pkg_resources.py @@ -92,8 +92,8 @@ class TestZipProvider(object): ts = timestamp(self.ref_time) os.utime(filename, (ts, ts)) filename = zp.get_resource_filename(manager, 'data.dat') - f = open(filename) - assert f.read() == 'hello, world!' + with open(filename) as f: + assert f.read() == 'hello, world!' manager.cleanup_resources() |
