summaryrefslogtreecommitdiffhomepage
path: root/tests/07_test_fastimport.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-08-02 01:32:37 -0300
committerGuido Günther <agx@sigxcpu.org>2017-08-02 01:32:37 -0300
commitd9003c7c7ba5c65b3ad35b3aee589975c28c1270 (patch)
treebfe283b0ddcbf956a171bbaae9401572c99929f1 /tests/07_test_fastimport.py
parenta6efdf80c1b50b0e8ffee65a557d7741c0fe5bba (diff)
fastimport: port to byte
to make it work with Python3
Diffstat (limited to 'tests/07_test_fastimport.py')
-rw-r--r--tests/07_test_fastimport.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/07_test_fastimport.py b/tests/07_test_fastimport.py
index 2c52a81b..c3ca8188 100644
--- a/tests/07_test_fastimport.py
+++ b/tests/07_test_fastimport.py
@@ -39,8 +39,8 @@ def test_add_file():
fastimport.start_commit('master', author, "a commit")
fastimport.deleteall()
testfile = os.path.join(repo.path, '.git', 'description')
- fastimport.add_file('./testfile',
- open(testfile),
+ fastimport.add_file(b'./testfile',
+ open(testfile, 'rb'),
os.path.getsize(testfile))