src/eric7/Testing/Interfaces/UnittestExecutor.py

branch
eric7
changeset 10683
779cda568acb
parent 10439
21c28b0f9e41
child 10694
f46c1e224e8a
child 10928
46651e194fbe
equal deleted inserted replaced
10682:47be220abdaf 10683:779cda568acb
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