Fix tests that use timed_subprocess for py3

This commit is contained in:
Daniel A. Wozniak 2018-08-28 00:03:38 -07:00
parent 2d8055e151
commit 6ffeaae19b
No known key found for this signature in database
GPG Key ID: 166B9D2C06C82D61

View File

@ -40,7 +40,7 @@ class TimedProc(object):
if self.timeout and not isinstance(self.timeout, (int, float)): if self.timeout and not isinstance(self.timeout, (int, float)):
raise salt.exceptions.TimedProcTimeoutError('Error: timeout {0} must be a number'.format(self.timeout)) raise salt.exceptions.TimedProcTimeoutError('Error: timeout {0} must be a number'.format(self.timeout))
if kwargs.get('shell', False): if six.PY2 and kwargs.get('shell', False):
args = salt.utils.stringutils.to_bytes(args) args = salt.utils.stringutils.to_bytes(args)
try: try: