Can't serialize pydev/stateconf, start on #5055

This commit is contained in:
Thomas S Hatch 2013-05-18 22:47:14 +00:00
parent 43c731a75a
commit 123d52bdc6
2 changed files with 13 additions and 1 deletions

View file

@ -294,7 +294,11 @@ def sls(mods, env='base', test=None, exclude=None, **kwargs):
log.error(msg.format(cache_file))
_set_retcode(ret)
with open(cfn, 'w+') as fp_:
serial.dump(high_, fp_)
try:
serial.dump(high_, fp_)
except TypeError:
# Can't serialize pydsl
pass
return ret

View file

@ -335,6 +335,14 @@ fi
ret
)
def test_pydsl(self):
'''
Test the basics of the pydsl
'''
ret = self.run_function('state.sls', mods='pydsl-1')
import pprint
pprint.pprint(ret)
if __name__ == '__main__':
from integration import run_tests