diff options
Diffstat (limited to 'Lib/packaging/tests/test_create.py')
-rw-r--r-- | Lib/packaging/tests/test_create.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/packaging/tests/test_create.py b/Lib/packaging/tests/test_create.py index 99ab0633d3..9c7a91220c 100644 --- a/Lib/packaging/tests/test_create.py +++ b/Lib/packaging/tests/test_create.py @@ -173,11 +173,8 @@ class CreateTestCase(support.TempdirManager, dedent(""" # -*- coding: utf-8 -*- from distutils.core import setup - fp = open('README.txt') - try: + with open('README.txt') as fp: long_description = fp.read() - finally: - fp.close() setup(name='pyxfoil', version='0.2', |