diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-06-18 14:08:20 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-06-18 14:08:20 -0500 |
commit | a85aa143f971ebfbb31ccaf58cb82a311f9315c6 (patch) | |
tree | eeae1529ae15884aca3301fefae768fc2e531a18 /setuptools/tests/test_dist_info.py | |
parent | 94fc39cb62df19e85b07658f2fa5d0b4a7bf9303 (diff) | |
parent | 641eac6550896506fa939205f249bcfb8f057d57 (diff) | |
download | external_python_setuptools-a85aa143f971ebfbb31ccaf58cb82a311f9315c6.tar.gz external_python_setuptools-a85aa143f971ebfbb31ccaf58cb82a311f9315c6.tar.bz2 external_python_setuptools-a85aa143f971ebfbb31ccaf58cb82a311f9315c6.zip |
Merge Vinay Sajip's unified Python 2/3 support from distribute 3
--HG--
branch : distribute
Diffstat (limited to 'setuptools/tests/test_dist_info.py')
-rw-r--r-- | setuptools/tests/test_dist_info.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/setuptools/tests/test_dist_info.py b/setuptools/tests/test_dist_info.py index 93ab8816..a8adb68c 100644 --- a/setuptools/tests/test_dist_info.py +++ b/setuptools/tests/test_dist_info.py @@ -50,9 +50,9 @@ class TestDistInfo(unittest.TestCase): versioned = os.path.join(self.tmpdir, 'VersionedDistribution-2.718.dist-info') os.mkdir(versioned) - f = open(os.path.join(versioned, 'METADATA'), 'w+') + metadata_file = open(os.path.join(versioned, 'METADATA'), 'w+') try: - f.write(DALS( + metadata_file.write(DALS( """ Metadata-Version: 1.2 Name: VersionedDistribution @@ -61,13 +61,13 @@ class TestDistInfo(unittest.TestCase): Requires-Dist: quux (>=1.1); extra == 'baz' """)) finally: - f.close() + metadata_file.close() unversioned = os.path.join(self.tmpdir, 'UnversionedDistribution.dist-info') os.mkdir(unversioned) - f = open(os.path.join(unversioned, 'METADATA'), 'w+') + metadata_file = open(os.path.join(unversioned, 'METADATA'), 'w+') try: - f.write(DALS( + metadata_file.write(DALS( """ Metadata-Version: 1.2 Name: UnversionedDistribution @@ -77,7 +77,7 @@ class TestDistInfo(unittest.TestCase): Requires-Dist: quux (>=1.1); extra == 'baz' """)) finally: - f.close() + metadata_file.close() def tearDown(self): shutil.rmtree(self.tmpdir) |