diff options
Diffstat (limited to 'distutils2/tests/test_command_config.py')
| -rw-r--r-- | distutils2/tests/test_command_config.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/distutils2/tests/test_command_config.py b/distutils2/tests/test_command_config.py index 91058c7..877e417 100644 --- a/distutils2/tests/test_command_config.py +++ b/distutils2/tests/test_command_config.py @@ -13,8 +13,9 @@ class ConfigTestCase(support.LoggingCatcher, def test_dump_file(self): this_file = __file__.rstrip('co') - with open(this_file) as f: - numlines = len(f.readlines()) + f = open(this_file) + numlines = len(f.readlines()) + f.close() dump_file(this_file, 'I am the header') |
