mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
gh-51524: Fix bug when calling trace.CoverageResults with valid infile (#99629)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
276643e207
commit
594de165bf
3 changed files with 12 additions and 1 deletions
|
@ -172,7 +172,7 @@ class CoverageResults:
|
|||
try:
|
||||
with open(self.infile, 'rb') as f:
|
||||
counts, calledfuncs, callers = pickle.load(f)
|
||||
self.update(self.__class__(counts, calledfuncs, callers))
|
||||
self.update(self.__class__(counts, calledfuncs, callers=callers))
|
||||
except (OSError, EOFError, ValueError) as err:
|
||||
print(("Skipping counts file %r: %s"
|
||||
% (self.infile, err)), file=sys.stderr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue