Skip to content

Commit 447525d

Browse files
committed
Tweaked the output of mypy_test().
- Legacy-Id: 16865
1 parent 4d7db7e commit 447525d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ietf/utils/test_runner.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,12 @@ def __init__(self, test_runner=None, **kwargs):
146146

147147
@unittest.skipIf(sys.version_info[0] < 3, "Mypy and django-stubs not available under Py2")
148148
def mypy_test(self):
149+
self.maxDiff = None
149150
from mypy import api
150151
out, err, code = api.run(['ietf', ])
152+
out_lines = [ l for l in out.splitlines() if not l.startswith('Success: ') ]
151153
self.assertEqual([], err.splitlines())
152-
self.assertEqual([], out.splitlines())
154+
self.assertEqual([], out_lines)
153155
self.assertEqual(code, 0)
154156

155157
class TemplateCoverageLoader(BaseLoader):

0 commit comments

Comments
 (0)