Making it possible for static analysis tests to be skipped if the python version doesn't match.
This commit is contained in:
1 parent
515d096d33
commit
6bad5a924b
4 files changed
+32
-11
No files matched your search
+5
-1
@@ -89,11 +89,15 @@ class StaticAnalysisCase(object):
|
||||
The tests also start with `#!`, like the goto_definition tests.
|
||||
"""
|
||||
def __init__(self, path):
|
||||
self.skip = False
|
||||
self._path = path
|
||||
with open(path) as f:
|
||||
self._source = f.read()
|
||||
|
||||
self.skip = False
|
||||
for line in self._source.splitlines():
|
||||
self.skip = self.skip or run.skip_python_version(line)
|
||||
|
||||
|
||||
def collect_comparison(self):
|
||||
cases = []
|
||||
for line_nr, line in enumerate(self._source.splitlines(), 1):
|
||||
|
||||
Reference in new issue
Block a user