From d8f1d925dc0aa4908f3f5a1b965f671bcf1b5ba6 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 3 Nov 2018 17:12:30 -0400 Subject: Adapt to 3.8's way of tracing decorated functions --- coverage/env.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'coverage/env.py') diff --git a/coverage/env.py b/coverage/env.py index aa8bb8f6..fd98fa2b 100644 --- a/coverage/env.py +++ b/coverage/env.py @@ -34,6 +34,12 @@ class PYBEHAVIOR(object): # work? finally_jumps_back = (PYVERSION >= (3, 8)) + # When a function is decorated, does the trace function get called for the + # @-line and also the def-line (new behavior in 3.8)? Or just the @-line + # (old behavior)? + trace_decorated_def = (PYVERSION >= (3, 8)) + + # Coverage.py specifics. # Are we using the C-implemented trace function? -- cgit v1.2.1