We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc788f4 commit c72ec5cCopy full SHA for c72ec5c
python-stdlib/unittest/unittest.py
@@ -170,16 +170,16 @@ def skipUnless(cond, msg):
170
171
class TestSuite:
172
def __init__(self):
173
- self.tests = []
+ self._tests = []
174
175
def addTest(self, cls):
176
- self.tests.append(cls)
+ self._tests.append(cls)
177
178
179
class TestRunner:
180
def run(self, suite):
181
res = TestResult()
182
- for c in suite.tests:
+ for c in suite._tests:
183
res.exceptions.extend(run_class(c, res))
184
185
print("Ran %d tests\n" % res.testsRun)
0 commit comments