mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
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:
parent
fa37509d1f
commit
fe9131e566
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user