src/eric7/Testing/Interfaces/UnittestExecutor.py

branch
eric7-maintenance
changeset 10694
f46c1e224e8a
parent 10460
3b34efa2857c
parent 10683
779cda568acb
child 10941
07cad049002c
equal deleted inserted replaced
10662:e6c9ab1dc168 10694:f46c1e224e8a
78 with contextlib.suppress(json.JSONDecodeError): 78 with contextlib.suppress(json.JSONDecodeError):
79 return json.loads(versionsStr) 79 return json.loads(versionsStr)
80 80
81 return {} 81 return {}
82 82
83 def hasCoverage(self, interpreter): # noqa: U100 83 def hasCoverage(self, interpreter):
84 """ 84 """
85 Public method to check, if the collection of coverage data is available. 85 Public method to check, if the collection of coverage data is available.
86 86
87 @param interpreter interpreter to be used for the test 87 @param interpreter interpreter to be used for the test
88 @type str 88 @type str
94 if proc.waitForFinished(3000): 94 if proc.waitForFinished(3000):
95 return proc.exitCode() == 0 95 return proc.exitCode() == 0
96 96
97 return False 97 return False
98 98
99 def supportsPatterns(self, interpreter): # noqa: U100 99 def supportsPatterns(self, _interpreter):
100 """ 100 """
101 Public method to indicate the support for test filtering using test name 101 Public method to indicate the support for test filtering using test name
102 patterns or a test name pattern expression. 102 patterns or a test name pattern expression.
103 103
104 @param interpreter interpreter to be used for the test 104 @param _interpreter interpreter to be used for the test (unused)
105 @type str 105 @type str
106 @return flag indicating support of markers 106 @return flag indicating support of markers
107 @rtype bool 107 @rtype bool
108 """ 108 """
109 return True 109 return True

eric ide

mercurial