diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1770,7 +1770,7 @@ class TTest(Test): if self._case: casestr = b'#'.join(self._case) - if isinstance(self._case, str): + if isinstance(casestr, str): quoted = shellquote(casestr) else: quoted = shellquote(casestr.decode('utf8')).encode('utf8')