Skip to content

Unit test fixes for FileBackend #178

@netomi

Description

@netomi

The problem

While running the tests I noticed that pytest does not finish after completing all tests. I tracked this down to aiosqlite that is still running as it was not properly closed for some testcases. This happens for the following FileBackend tests

  • test_autoclose
  • test_autoclose__disabled

Furthermore, for the FileBackend, the test_gather is skipped due to some weird runtime error when running the test.

Expected behavior

It is expected that the all tests run successfully and do not hang after completion.

Steps to reproduce the behavior

pytest test/integration/test_filesystem.py

Workarounds

There is no workaround available afaik.

Environment

  • aiohttp-client-cache version: [e.g. 0.9.1]
  • Python version: [e.g. 3.10]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions