# HG changeset patch # User Augie Fackler # Date 1428957192 14400 # Node ID 28526bb5b3b512d919454de37fcbe67e83ab1056 # Parent 55f1ac2797cc7ea1a1d4ec3eff3bab4b8956b668 run-tests: make sure keyword(s) are in bytes and not str diff -r 55f1ac2797cc -r 28526bb5b3b5 tests/run-tests.py --- a/tests/run-tests.py Mon Apr 13 16:31:19 2015 -0400 +++ b/tests/run-tests.py Mon Apr 13 16:33:12 2015 -0400 @@ -1823,13 +1823,16 @@ 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)