mirror of
https://github.com/python/cpython.git
synced 2025-11-09 01:51:26 +00:00
gh-51524: Fix bug when calling trace.CoverageResults with valid infile (GH-99629)
(cherry picked from commit 594de165bf)
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
f160996412
commit
fce9516a0f
3 changed files with 12 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ def __init__(self, counts=None, calledfuncs=None, infile=None,
|
|||
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