Issue #19527: Fixed tests with defined COUNT_ALLOCS.

This commit is contained in:
Serhiy Storchaka 2016-07-03 22:30:49 +03:00
commit bae75cf3fe
11 changed files with 29 additions and 6 deletions

View file

@ -763,6 +763,9 @@ class ArgsTestCase(BaseTestCase):
with open(filename) as fp:
reflog = fp.read()
if hasattr(sys, 'getcounts'):
# Types are immportal if COUNT_ALLOCS is defined
reflog = reflog.splitlines(True)[-1]
self.assertEqual(reflog, line2)
def test_list_tests(self):