diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-11-28 07:15:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 07:15:00 (GMT) |
commit | fce9516a0f81fa4973907f73b6f4718d7a67d99e (patch) | |
tree | ede6da40a885b80930672de3eced87affe4a5472 /Lib/trace.py | |
parent | f160996412e405a1ed2ed9959c061caa61b2636b (diff) | |
download | cpython-fce9516a0f81fa4973907f73b6f4718d7a67d99e.zip cpython-fce9516a0f81fa4973907f73b6f4718d7a67d99e.tar.gz cpython-fce9516a0f81fa4973907f73b6f4718d7a67d99e.tar.bz2 |
gh-51524: Fix bug when calling trace.CoverageResults with valid infile (GH-99629)
(cherry picked from commit 594de165bf2f21d6b28eb17003ea78fc20c0ffed)
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/trace.py')
-rwxr-xr-x | Lib/trace.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/trace.py b/Lib/trace.py index 2cf3643..213e465 100755 --- a/Lib/trace.py +++ b/Lib/trace.py @@ -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) |