diff options
author | Mickie Betz <mbetz08@cmc.edu> | 2015-04-14 16:53:30 -0400 |
---|---|---|
committer | Mickie Betz <mbetz08@cmc.edu> | 2015-04-14 16:53:30 -0400 |
commit | d4f1990c537d761989de342a3dd682e5df46c51c (patch) | |
tree | 8445942a9f88bfd1a80ea728ee4732ce380a1dfb /coverage/parser.py | |
parent | e036d40450fd3a30a71a81f63054597bbfd0f168 (diff) | |
download | python-coveragepy-d4f1990c537d761989de342a3dd682e5df46c51c.tar.gz |
Including generator yield statements when doing end of code calculations issue 324
Diffstat (limited to 'coverage/parser.py')
-rw-r--r-- | coverage/parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/parser.py b/coverage/parser.py index f488367..91b685c 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -308,7 +308,7 @@ OPS_CODE_END = _opcode_set('RETURN_VALUE') # Opcodes that unconditionally end the code chunk. OPS_CHUNK_END = _opcode_set( 'JUMP_ABSOLUTE', 'JUMP_FORWARD', 'RETURN_VALUE', 'RAISE_VARARGS', - 'BREAK_LOOP', 'CONTINUE_LOOP', + 'BREAK_LOOP', 'CONTINUE_LOOP', 'YIELD_VALUE', ) # Opcodes that unconditionally begin a new code chunk. By starting new chunks |