pytest/coverage: Improve the .toml comment about pragma 'inversion'

This commit is contained in:
Athanasius committed 2022-10-02 12:38:24 +01:00
1 parent 7aa832e3d1
commit 80a8a32666
2 files changed
+10 -4

No files matched your search

+4 -2
View File
@@ -15,8 +15,10 @@ omit = [ "tests/*", "venv/*", "dist.win32/*" ]
plugins = [ "coverage_conditional_plugin" ]
[tool.coverage.coverage_conditional_plugin.rules]
# Yes, the sense of all of these is inverted, because else it ends up
# inverted at *every* use.
# NB: The name versus content of all of these are inverted because of the way
# they're used. When a pragma cites one it causes that code block to
# **NOT** be considered for code coverage.
# See Contributin.md#test-coverage for more details.
sys-platform-win32 = "sys_platform != 'win32'"
sys-platform-not-win32 = "sys_platform == 'win32'"
sys-platform-darwin = "sys_platform != 'darwin'"