Merge pull request #24 from gitpython-developers/test_fixes

Fixed reference tests on linux
This commit is contained in:
J. David Ibáñez
2011-07-08 03:31:55 -07:00

View File

@@ -47,15 +47,15 @@ class ReferencesTest(utils.RepoTestCase):
repo = self.repo repo = self.repo
# Without argument # Without argument
self.assertEqual(repo.listall_references(), self.assertEqual(sorted(repo.listall_references()),
('refs/heads/i18n', 'refs/heads/master')) ['refs/heads/i18n', 'refs/heads/master'])
# We add a symbolic reference # We add a symbolic reference
reference = repo.create_symbolic_reference('refs/tags/version1', reference = repo.create_symbolic_reference('refs/tags/version1',
'refs/heads/master') 'refs/heads/master')
self.assertEqual(repo.listall_references(), self.assertEqual(sorted(repo.listall_references()),
('refs/heads/i18n', 'refs/heads/master', ['refs/heads/i18n', 'refs/heads/master',
'refs/tags/version1')) 'refs/tags/version1'])
# Now we list only the symbolic references # Now we list only the symbolic references
self.assertEqual(repo.listall_references(GIT_REF_SYMBOLIC), self.assertEqual(repo.listall_references(GIT_REF_SYMBOLIC),