Fix unit.modules.test_inspect_fsdb.InspectorFSDBTestCase.test_create_table for PY3

This was broken when I fixed the test for PY2. The types for unicode
strings in PY3 are of course `str` and not `unicode`.
This commit is contained in:
Erik Johnson 2018-01-26 01:02:03 -06:00
parent fa37509d1f
commit fe9131e566
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -140,12 +140,12 @@ class InspectorFSDBTestCase(TestCase):
else:
# Order in PY3 is not the same for every run
writable_data = writable.data[0].strip()
assert_order_options = ['bar:unicode,foo:int,spam:float',
'bar:unicode,spam:float,foo:int',
'foo:int,spam:float,bar:unicode',
'foo:int,bar:unicode,spam:float',
'spam:float,foo:int,bar:unicode',
'spam:float,bar:unicode,foo:int']
assert_order_options = ['bar:str,foo:int,spam:float',
'bar:str,spam:float,foo:int',
'foo:int,spam:float,bar:str',
'foo:int,bar:str,spam:float',
'spam:float,foo:int,bar:str',
'spam:float,bar:str,foo:int']
while assert_order_options:
assert_option = assert_order_options.pop()
try: