Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
efbb8eaf
Commit
efbb8eaf
authored
Sep 27, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid using old-style class in test runner in Py2.
parent
9078b896
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
runtests.py
runtests.py
+3
-1
No files found.
runtests.py
View file @
efbb8eaf
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment