Fix unit tests with Python 2.6
This commit is contained in:
parent
4cf1fc2371
commit
94f44feb22
@ -57,7 +57,7 @@ class OidTest(utils.BareRepoTestCase):
|
|||||||
self.assertEqual(oid.hex, HEX)
|
self.assertEqual(oid.hex, HEX)
|
||||||
|
|
||||||
def test_hex_bytes(self):
|
def test_hex_bytes(self):
|
||||||
if version_info.major == 2:
|
if version_info[0] == 2:
|
||||||
hex = bytes(HEX)
|
hex = bytes(HEX)
|
||||||
oid = Oid(hex=hex)
|
oid = Oid(hex=hex)
|
||||||
self.assertEqual(oid.raw, RAW)
|
self.assertEqual(oid.raw, RAW)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user