# HG changeset patch # User Augie Fackler # Date 2015-04-13 20:33:12 # Node ID 28526bb5b3b512d919454de37fcbe67e83ab1056 # Parent 55f1ac2797cc7ea1a1d4ec3eff3bab4b8956b668 run-tests: make sure keyword(s) are in bytes and not str diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1823,13 +1823,16 @@ class TestRunner(object): failed = False warned = False + kws = self.options.keywords + if kws is not None and sys.version_info[0] == 3: + kws = kws.encode('utf-8') suite = TestSuite(self._testdir, jobs=self.options.jobs, whitelist=self.options.whitelisted, blacklist=self.options.blacklist, retest=self.options.retest, - keywords=self.options.keywords, + keywords=kws, loop=self.options.loop, runs_per_test=self.options.runs_per_test, tests=tests, loadtest=self._gettest)