Fix unit tests with Python 2.6

This commit is contained in:
J. David Ibáñez 2013-04-18 23:59:34 +02:00
parent 4cf1fc2371
commit 94f44feb22

@ -57,7 +57,7 @@ class OidTest(utils.BareRepoTestCase):
self.assertEqual(oid.hex, HEX)
def test_hex_bytes(self):
if version_info.major == 2:
if version_info[0] == 2:
hex = bytes(HEX)
oid = Oid(hex=hex)
self.assertEqual(oid.raw, RAW)