Skip to content

Conditional does not work when the .coveragerc file is NOT at the project root #189

@sagshome

Description

@sagshome

Here is my rule:

[coverage_conditional_plugin]
rules =
"platform_system == 'Windows'": escape_win

Here is my code:
if remove:
try:
self.de_register(silent=True)
os.unlink(self.path)
except OSError as error: # pragma: escape_win
logger.debug('%s could not be removed (%s)', self.path, error)

This is my environment:

get_env_info()['platform_system']
'Windows'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions