Skip to content

Commit

Permalink
Fix tests on Python3.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Nov 1, 2015
1 parent fbaeaee commit 36282bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
- 'git annotate' equivalent
- repacking
- archive
6 changes: 3 additions & 3 deletions dulwich/tests/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,9 @@ def test_shell_hook_post_commit(self):

def test_as_dict(self):
def check(repo):
self.assertEqual(repo.refs.subkeys('refs/tags'), repo.refs.subkeys('refs/tags/'))
self.assertEqual(repo.refs.as_dict('refs/tags'), repo.refs.as_dict('refs/tags/'))
self.assertEqual(repo.refs.as_dict('refs/heads'), repo.refs.as_dict('refs/heads/'))
self.assertEqual(repo.refs.subkeys(b'refs/tags'), repo.refs.subkeys(b'refs/tags/'))
self.assertEqual(repo.refs.as_dict(b'refs/tags'), repo.refs.as_dict(b'refs/tags/'))
self.assertEqual(repo.refs.as_dict(b'refs/heads'), repo.refs.as_dict(b'refs/heads/'))

bare = self.open_repo('a.git')
tmp_dir = self.mkdtemp()
Expand Down

0 comments on commit 36282bc

Please sign in to comment.