summaryrefslogtreecommitdiff
path: root/git/test/test_repo.py
diff options
context:
space:
mode:
authorBarry Scott <barry@barrys-emacs.org>2016-08-01 12:29:12 +0100
committerBarry Scott <barry@barrys-emacs.org>2016-08-01 12:29:12 +0100
commitd8ef023a5bab377764343c954bf453869def4807 (patch)
tree9c3162a86e9c261c3f03e9c8df1244b585b966fb /git/test/test_repo.py
parent8bde1038e19108ec90f899ce4aff7f31c1e387eb (diff)
downloadgitpython-d8ef023a5bab377764343c954bf453869def4807.tar.gz
fix flake8 problems
Diffstat (limited to 'git/test/test_repo.py')
-rw-r--r--git/test/test_repo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/git/test/test_repo.py b/git/test/test_repo.py
index b1a58fd4..48900c26 100644
--- a/git/test/test_repo.py
+++ b/git/test/test_repo.py
@@ -781,13 +781,13 @@ class TestRepo(TestBase):
nb = r.create_head('foo')
assert nb.is_valid()
- with open( new_file_path, 'w' ) as f:
- f.write( 'Line 1\n' )
+ with open(new_file_path, 'w') as f:
+ f.write('Line 1\n')
r.index.add([new_file_path])
r.index.commit("add line 1\nBAD MESSAGE 2\n")
- with open( '%s/.git/logs/refs/heads/master' % (rw_dir,), 'r' ) as f:
+ with open('%s/.git/logs/refs/heads/master' % (rw_dir,), 'r') as f:
contents = f.read()
assert 'BAD MESSAGE' not in contents, 'log is corrupt'