mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2025-02-28 09:30:05 +00:00
Fixed tests for uuid type
This commit is contained in:
parent
8260774995
commit
017dd81734
@ -21,7 +21,11 @@ class TestSegment(object):
|
||||
for k, v in state.items():
|
||||
print("k=%s v=%s type=%s" % (k, v, type(v)))
|
||||
byte_type = type(str(u' ').encode('utf-8')) # py2 and py3
|
||||
assert type(state['uuid']) == byte_type
|
||||
try:
|
||||
u = unicode(" ")
|
||||
except:
|
||||
u = str(" ")
|
||||
assert type(state['uuid']) == type(u)
|
||||
|
||||
def test_extra(self):
|
||||
s = self.segment
|
||||
|
Loading…
x
Reference in New Issue
Block a user