summaryrefslogtreecommitdiffhomepage
path: root/tests/28_test_gbp_git_repository_commit_dir.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-08-02 01:32:36 -0300
committerGuido Günther <agx@sigxcpu.org>2017-08-02 01:32:36 -0300
commit1b5a47f4bda5d8809998750c3a35b4e02c8b2851 (patch)
tree626396ad13e391bb61e8d447db4f37767acec652 /tests/28_test_gbp_git_repository_commit_dir.py
parent4f5ee19158e2058537fbb8023beb8803f5b46d60 (diff)
GitRepository: port to Python3
We treat everything as unicode except paths which we handle as bytestrings
Diffstat (limited to 'tests/28_test_gbp_git_repository_commit_dir.py')
-rw-r--r--tests/28_test_gbp_git_repository_commit_dir.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/28_test_gbp_git_repository_commit_dir.py b/tests/28_test_gbp_git_repository_commit_dir.py
index 67d47500..7fcea51d 100644
--- a/tests/28_test_gbp_git_repository_commit_dir.py
+++ b/tests/28_test_gbp_git_repository_commit_dir.py
@@ -19,7 +19,7 @@ class TestGitRepositoryCommitDir(DebianGitTestRepo):
'new content',
'master',
create_missing_branch=True)
- self.assertEquals(self.repo.show('master:file1'), 'content1')
+ self.assertEquals(self.repo.show('master:file1'), b'content1')
def test_long_reflog(self):
"""Make sure we fail on onverly long msg resulting in an
@@ -36,7 +36,7 @@ class TestGitRepositoryCommitDir(DebianGitTestRepo):
'foo\n' * 100000,
'master',
create_missing_branch=True)
- self.assertEquals(self.repo.show('master:file1'), 'content1')
+ self.assertEquals(self.repo.show('master:file1'), b'content1')
out, dummy, ret = self.repo._git_inout('reflog', [])
self.assertEquals(ret, 0)
- self.assertIn('HEAD@{0}: gbp: foo\n', out)
+ self.assertIn(b'HEAD@{0}: gbp: foo\n', out)