summaryrefslogtreecommitdiff
path: root/coverage/env.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/env.py')
-rw-r--r--coverage/env.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/coverage/env.py b/coverage/env.py
index 444cb892..2e21b9a7 100644
--- a/coverage/env.py
+++ b/coverage/env.py
@@ -110,6 +110,9 @@ class PYBEHAVIOR:
# Some words are keywords in some places, identifiers in other places.
soft_keywords = (PYVERSION >= (3, 10))
+ # Modules start with a line numbered zero. This means empty modules have
+ # only a 0-number line, which is ignored, giving a truly empty module.
+ empty_is_empty = (PYVERSION >= (3, 11, 0, 'beta', 4))
# Coverage.py specifics.