diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-11-28 07:08:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 07:08:12 (GMT) |
commit | 345aaa41766d5ec2e34cf08beb79307caf5fc5cf (patch) | |
tree | 530677a84bd2b0bf3bd2ef65a26f54f165c88139 /Lib/trace.py | |
parent | ab87bcd91fdb5fddb0cea6f4a38ef9e6a679482b (diff) | |
download | cpython-345aaa41766d5ec2e34cf08beb79307caf5fc5cf.zip cpython-345aaa41766d5ec2e34cf08beb79307caf5fc5cf.tar.gz cpython-345aaa41766d5ec2e34cf08beb79307caf5fc5cf.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) |