Skip to content

Unnecessary warning when closing a file #23

@marijnd

Description

@marijnd

When running a unittest on a piece of code that uses libCharon we get:

.../Charon/VirtualFile.py:50: ResourceWarning: unclosed file

Reason for this is that the testrunner run python with -W. I think the warning is invalid. Is there a way to prevent this warning?

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