We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fe0947 commit f275803Copy full SHA for f275803
coverage_pyver_pragma/grammar.py
@@ -120,6 +120,7 @@
120
121
# stdlib
122
import platform
123
+import sys
124
125
# 3rd party
126
import packaging.specifiers
@@ -156,6 +157,17 @@
156
157
"GRAMMAR",
158
]
159
160
+# This ensures coverage.py records the correct coverage for these modules
161
+# when they are under test
162
+
163
+for module in [
164
+ "domdf_python_tools",
165
+ "domdf_python_tools.doctools",
166
+ "domdf_python_tools.stringlist",
167
+ ]:
168
+ if module in sys.modules:
169
+ del sys.modules[module]
170
171
172
@prettify_docstrings
173
class VersionTag(packaging.specifiers.SpecifierSet):
0 commit comments