tests: Close file object in six_brokenpkg

This commit is contained in:
Alex Willmer 2024-09-10 15:44:17 +01:00
parent 16c602aaa2
commit 7d9eebdb9a
1 changed files with 1 additions and 1 deletions

View File

@ -53,4 +53,4 @@ if _system_six:
else: else:
from . import _six as six from . import _six as six
six_py_file = '{0}.py'.format(os.path.splitext(six.__file__)[0]) six_py_file = '{0}.py'.format(os.path.splitext(six.__file__)[0])
exec(open(six_py_file, 'rb').read()) with open(six_py_file, 'rb') as f: exec(f.read())