diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-01 18:20:13 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-01 18:25:57 +0200 |
commit | 9a521681ff8614beb8e2c566cf3c475baca22169 (patch) | |
tree | 77365cb808a255eb53889725bfce775b5090330e /git/test/test_remote.py | |
parent | bdf1e68f6bec679edc3feb455596e18c387879c4 (diff) | |
download | gitpython-9a521681ff8614beb8e2c566cf3c475baca22169.tar.gz |
io, #519: ALL open() --> with open()
+ Some cases had restructuring of code.
Diffstat (limited to 'git/test/test_remote.py')
-rw-r--r-- | git/test/test_remote.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/test/test_remote.py b/git/test/test_remote.py index 05de4ae2..b99e49cf 100644 --- a/git/test/test_remote.py +++ b/git/test/test_remote.py @@ -105,8 +105,8 @@ class TestRemote(TestBase): gc.collect() def _print_fetchhead(self, repo): - fp = open(os.path.join(repo.git_dir, "FETCH_HEAD")) - fp.close() + with open(os.path.join(repo.git_dir, "FETCH_HEAD")): + pass def _do_test_fetch_result(self, results, remote): # self._print_fetchhead(remote.repo) |