commit | bae75cf3fe975d21c0c20baa595d21ebeca54681 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sun Jul 03 22:30:49 2016 +0300 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Sun Jul 03 22:30:49 2016 +0300 |
tree | 5d1b8a52a7c505d5eacd37f8525ccb230776ba27 | |
parent | 7e160ce356036bccda2608d9ee10bfe276dfa97a [diff] [blame] | |
parent | a793037d803abf098d172f686e2b95d27863c54d [diff] [blame] |
Issue #19527: Fixed tests with defined COUNT_ALLOCS.
diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py index c11408d..32edff8 100644 --- a/Lib/test/test_regrtest.py +++ b/Lib/test/test_regrtest.py
@@ -763,6 +763,9 @@ 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):