summaryrefslogtreecommitdiff
path: root/git/test/test_index.py
diff options
context:
space:
mode:
authorPiotr Pietraszkiewicz <ppietraszkiewicz@psi.de>2016-04-13 17:12:51 +0200
committerPiotr Pietraszkiewicz <ppietraszkiewicz@psi.de>2016-04-13 17:12:51 +0200
commit6f6713669a8a32af90a73d03a7fa24e6154327f2 (patch)
treec4dcf0b69d49eaa4dcd1d8bc8e59822405704944 /git/test/test_index.py
parentaf74966685e1d1f18390a783f6b8d26b3b1c26d1 (diff)
downloadgitpython-6f6713669a8a32af90a73d03a7fa24e6154327f2.tar.gz
fixed unittest of issue #407 for Python3
Diffstat (limited to 'git/test/test_index.py')
-rw-r--r--git/test/test_index.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/test/test_index.py b/git/test/test_index.py
index 7546f6be..f5f9d707 100644
--- a/git/test/test_index.py
+++ b/git/test/test_index.py
@@ -801,7 +801,7 @@ class TestIndex(TestBase):
def test_add_a_file_with_wildcard_chars(self, rw_dir):
# see issue #407
fp = os.path.join(rw_dir, '[.exe')
- with open(fp, "w") as f:
+ with open(fp, "wb") as f:
f.write(b'something')
r = Repo.init(rw_dir)