diff options
Diffstat (limited to 'wintest')
-rw-r--r-- | wintest/wintest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wintest/wintest.py b/wintest/wintest.py index a43059975d..15b95bb1f5 100644 --- a/wintest/wintest.py +++ b/wintest/wintest.py @@ -70,6 +70,9 @@ class wintest(): ret[i] = self.substitute(ret[i]) return ret + """We may have objects such as pexpect.EOF that are not strings""" + if not isinstance(text, str): + return text while True: var_start = text.find("${") if var_start == -1: |