If a block has two platform/OS-specific branches, currently the only way to reach 100% with a single configuration is to use
#pragma: no cover on both branches, ignoring the block when coverage is run on any platform/OS.
It is useful for each platform/OS to require coverage for their own branch.
This can be currently be achieved by using a different configuration file for each platformOS.
It would be helpful that the configuration allows for different ignore patterns for platform/OS, so only one configuration file is needed for all platforms.
One easy way to do this is to iterate the section names in the ini file, extracting any section with
pytest in the name, and then finding the most appropriate section for the host platform/OS.
Another approach is to allow the ignore regex to be specified on the command line.