[PATCH 2 of 8] tests: fix run-tests "slow test" check

Augie Fackler raf at durin42.com
Tue Sep 19 00:35:19 EDT 2017


# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1505794043 14400
#      Tue Sep 19 00:07:23 2017 -0400
# Node ID 3c053b1219603bfa7f6d4e51b7c1753d8f49a421
# Parent  920c56d5f84cd54395a22cce9d0cc79216ed4cf2
tests: fix run-tests "slow test" check

Look for bytes in a set of bytes objects.

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -1265,7 +1265,7 @@ class TTest(Test):
         if ret != 0:
             return False, stdout
 
-        if 'slow' in reqs:
+        if b'slow' in reqs:
             self._timeout = self._slowtimeout
         return True, None
 


More information about the Mercurial-devel mailing list