Skip to content

Getting ResourceWarning: unclosed file open(csspath) #246

@wanam

Description

@wanam

I'm getting bellow error while loading a custom css file:
ResourceWarning: unclosed file <_io.TextIOWrapper name='assets/style.css' mode='r' encoding='UTF-8'>open(csspath)

The bug is similar to pytest-dev/pytest#4355

I'm wondering if this code block is just a leftover, because I think the custom css file is loaded here.

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