Hi @nedbat . Just upgraded to coverage 7.16.2 from 6.x. Any idea why it increase...

@dalke@toots.nu

Hi @nedbat .
Just upgraded to coverage 7.16.2 from 6.x.

Any idea why it increases refcount(None) in a list comprehension in Python 3.11.10 (&3.10.15)? Here's a repo:

% cat check.py
import sys

n1 = sys.getrefcount(None)
for _ in range(100):
[x for x in ""]
n2 = sys.getrefcount(None)
print(n2-n1)

% python --version
Python 3.11.10
% python check.py
0
% coverage --version
Coverage.py, version 7.16.2 with C extension
..
% coverage run check.py
200

Works fine with 3.12.2, 3.13.5, and 3.14.2.