mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Make sure spm tests are picked up by runtests.
Lists in py2 don't have the clear method
This commit is contained in:
parent
2605f34849
commit
ec0cc943e0
1 changed files with 3 additions and 3 deletions
|
@ -129,12 +129,12 @@ class SPMTest(TestCase):
|
|||
('summary', 'Summary: {0}')):
|
||||
assert line.format(_F1['definition'][key]) in lines
|
||||
# Reinstall with force=False, should fail
|
||||
self.ui._error.clear()
|
||||
self.ui._error = []
|
||||
self.client.run(['local', 'install', pkgpath])
|
||||
assert len(self.ui._error) > 0
|
||||
# Reinstall with force=True, should succeed
|
||||
__opts__['force'] = True
|
||||
self.ui._error.clear()
|
||||
self.ui._error = []
|
||||
self.client.run(['local', 'install', pkgpath])
|
||||
assert len(self.ui._error) == 0
|
||||
__opts__['force'] = False
|
||||
|
@ -167,7 +167,7 @@ class SPMTest(TestCase):
|
|||
)
|
||||
|
||||
for args in fail_args:
|
||||
self.ui._error.clear()
|
||||
self.ui._error = []
|
||||
self.client.run(args)
|
||||
assert len(self.ui._error) > 0
|
||||
|
Loading…
Add table
Reference in a new issue