Commit efbb8eaf authored by Stefan Behnel's avatar Stefan Behnel

Avoid using old-style class in test runner in Py2.

parent 9078b896
...@@ -1632,6 +1632,7 @@ class RegExSelector: ...@@ -1632,6 +1632,7 @@ class RegExSelector:
def __call__(self, testname, tags=None): def __call__(self, testname, tags=None):
return self.pattern.search(testname) return self.pattern.search(testname)
def string_selector(s): def string_selector(s):
ix = s.find(':') ix = s.find(':')
if ix == -1: if ix == -1:
...@@ -1639,7 +1640,8 @@ def string_selector(s): ...@@ -1639,7 +1640,8 @@ def string_selector(s):
else: else:
return TagsSelector(s[:ix], s[ix+1:]) return TagsSelector(s[:ix], s[ix+1:])
class ShardExcludeSelector:
class ShardExcludeSelector(object):
# This is an exclude selector so it can override the (include) selectors. # This is an exclude selector so it can override the (include) selectors.
# It may not provide uniform distribution (in time or count), but is a # It may not provide uniform distribution (in time or count), but is a
# determanistic partition of the tests which is important. # determanistic partition of the tests which is important.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment