Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bde103 commit d8ef023Copy full SHA for d8ef023
git/test/test_repo.py
@@ -781,13 +781,13 @@ def test_empty_repo(self, rw_dir):
781
nb = r.create_head('foo')
782
assert nb.is_valid()
783
784
- with open( new_file_path, 'w' ) as f:
785
- f.write( 'Line 1\n' )
+ with open(new_file_path, 'w') as f:
+ f.write('Line 1\n')
786
787
r.index.add([new_file_path])
788
r.index.commit("add line 1\nBAD MESSAGE 2\n")
789
790
- 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:
791
contents = f.read()
792
793
assert 'BAD MESSAGE' not in contents, 'log is corrupt'
0 commit comments