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
f4febd05
Commit
f4febd05
authored
Oct 21, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid old-style classes in test runner under Py2.
parent
fa5432f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
runtests.py
runtests.py
+7
-7
No files found.
runtests.py
View file @
f4febd05
...
...
@@ -1576,7 +1576,8 @@ class EmbedTest(unittest.TestCase):
except OSError:
pass
class MissingDependencyExcluder:
class MissingDependencyExcluder(object):
def __init__(self, deps):
# deps: { matcher func : module name }
self.exclude_matchers = []
...
...
@@ -1593,7 +1594,8 @@ class MissingDependencyExcluder:
return True
return False
class VersionDependencyExcluder:
class VersionDependencyExcluder(object):
def __init__(self, deps):
# deps: { version : matcher func }
from sys import version_info
...
...
@@ -1610,8 +1612,7 @@ class VersionDependencyExcluder:
return False
class FileListExcluder:
class FileListExcluder(object):
def __init__(self, list_file, verbose=False):
self.verbose = verbose
self.excludes = {}
...
...
@@ -1631,8 +1632,7 @@ class FileListExcluder:
return exclude
class TagsSelector:
class TagsSelector(object):
def __init__(self, tag, value):
self.tag = tag
self.value = value
...
...
@@ -1643,8 +1643,8 @@ class TagsSelector:
else:
return self.value in tags[self.tag]
class RegExSelector:
class RegExSelector(object):
def __init__(self, pattern_string):
try:
self.pattern = re.compile(pattern_string, re.I|re.U)
...
...
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