diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-08-02 01:32:37 -0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-08-02 01:32:37 -0300 |
commit | d9003c7c7ba5c65b3ad35b3aee589975c28c1270 (patch) | |
tree | bfe283b0ddcbf956a171bbaae9401572c99929f1 /tests/07_test_fastimport.py | |
parent | a6efdf80c1b50b0e8ffee65a557d7741c0fe5bba (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.py | 4 |
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)) |