Skip to content

async ward tests fail with piccolo 0.75.0, pass with piccolo 0.74.4 #536

Closed
@backwardspy

Description

@backwardspy

i've put together a small project here to help replicate the issue: https://github.com/backwardspy/piccolo-ward-async-repro

i have a project with around 100 ward tests. most of those tests fail on piccolo 0.75.0 with the following error:

FixtureError: Unable to resolve fixture '[redacted]'
    ↓ caused by ↓
RuntimeError: There is no current event loop in thread 'MainThread'.

running the tests on piccolo 0.74.4 works fine.

i believe this is (at least indirectly) caused by the changes to the async event loop handling in piccolo. that said, i'm not sure if this is actually an issue with piccolo, or just an issue with ward that has now been illuminated due to the aforementioned piccolo changes.

i appreciate any thoughts/suggestions. great work on piccolo!

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