@@ -87,7 +87,7 @@ def test_read_blob(testrepo: Repository) -> None:
8787    assert  blob .id  ==  BLOB_SHA 
8888    assert  isinstance (blob , pygit2 .Blob )
8989    assert  not  blob .is_binary 
90-     assert  ObjectType .BLOB  ==  blob .type 
90+     assert  int ( ObjectType .BLOB )  ==  blob .type 
9191    assert  BLOB_CONTENT  ==  blob .data 
9292    assert  len (BLOB_CONTENT ) ==  blob .size 
9393    assert  BLOB_CONTENT  ==  blob .read_raw ()
@@ -98,7 +98,7 @@ def test_create_blob(testrepo: Repository) -> None:
9898    blob  =  testrepo [blob_oid ]
9999
100100    assert  isinstance (blob , pygit2 .Blob )
101-     assert  ObjectType .BLOB  ==  blob .type 
101+     assert  int ( ObjectType .BLOB )  ==  blob .type 
102102
103103    assert  blob_oid  ==  blob .id 
104104    assert  utils .gen_blob_sha1 (BLOB_NEW_CONTENT ) ==  blob_oid 
@@ -122,7 +122,7 @@ def test_create_blob_fromworkdir(testrepo: Repository) -> None:
122122    blob  =  testrepo [blob_oid ]
123123
124124    assert  isinstance (blob , pygit2 .Blob )
125-     assert  ObjectType .BLOB  ==  blob .type 
125+     assert  int ( ObjectType .BLOB )  ==  blob .type 
126126
127127    assert  blob_oid  ==  blob .id 
128128    assert  utils .gen_blob_sha1 (BLOB_FILE_CONTENT ) ==  blob_oid 
@@ -149,7 +149,7 @@ def test_create_blob_fromdisk(testrepo: Repository) -> None:
149149    blob  =  testrepo [blob_oid ]
150150
151151    assert  isinstance (blob , pygit2 .Blob )
152-     assert  ObjectType .BLOB  ==  blob .type 
152+     assert  int ( ObjectType .BLOB )  ==  blob .type 
153153
154154
155155def  test_create_blob_fromiobase (testrepo : Repository ) ->  None :
@@ -161,7 +161,7 @@ def test_create_blob_fromiobase(testrepo: Repository) -> None:
161161    blob  =  testrepo [blob_oid ]
162162
163163    assert  isinstance (blob , pygit2 .Blob )
164-     assert  ObjectType .BLOB  ==  blob .type 
164+     assert  int ( ObjectType .BLOB )  ==  blob .type 
165165
166166    assert  blob_oid  ==  blob .id 
167167    assert  BLOB_SHA  ==  blob_oid 
0 commit comments