From 5aca5af02423f37ec7f4a3a02849e74c54b5ccf1 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 2 Oct 2018 18:54:15 -0400 Subject: Python 3.6 changed lnotab to signed bytes --- coverage/parser.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'coverage/parser.py') diff --git a/coverage/parser.py b/coverage/parser.py index c9eb793f..bb99cf0d 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -409,6 +409,8 @@ class ByteParser(object): yield (byte_num, line_num) last_line_num = line_num byte_num += byte_incr + if env.PYVERSION >= (3, 6) and line_incr >= 0x80: + line_incr -= 0x100 line_num += line_incr if line_num != last_line_num: yield (byte_num, line_num) -- cgit v1.2.1