mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Py3 compatibility fixes
This commit is contained in:
parent
b54c02930f
commit
f07427a0ed
@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Import Python libs
|
||||
from __future__ import absolute_import
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
# Import Salt Testing libs
|
||||
from salttesting.helpers import ensure_in_syspath
|
||||
@ -41,7 +41,7 @@ class PublishModuleTest(integration.ModuleCase,
|
||||
)
|
||||
for name in check_true:
|
||||
if name not in ret:
|
||||
print name
|
||||
print(name)
|
||||
self.assertTrue(name in ret)
|
||||
|
||||
self.assertEqual(ret['cheese'], 'spam')
|
||||
@ -82,7 +82,7 @@ class PublishModuleTest(integration.ModuleCase,
|
||||
)
|
||||
for name in check_true:
|
||||
if name not in ret:
|
||||
print name
|
||||
print(name)
|
||||
self.assertTrue(name in ret)
|
||||
|
||||
self.assertEqual(ret['cheese'], 'spam')
|
||||
|
Loading…
Reference in New Issue
Block a user