mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
Issue #19527: Fixed tests with defined COUNT_ALLOCS.
This commit is contained in:
commit
bae75cf3fe
11 changed files with 29 additions and 6 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue