Skip to content

Importing utils_test opens ports #7139

Open
@max-sixty

Description

@max-sixty

This is related to #6806 & #6897, but I thought it was separate enough to open an issue.

We import utils_test in xarray's test suite. Currently importing distributed.utils_test does work, including opening ports.

I'm guessing this is caused by

_offload_executor.submit(lambda: None).result() # create thread during import

Beyond just doing more work than I'd expect on import — on a MacOS machine, it pops open a system dialog asking whether that's OK, every time. And if someone is running something on each file save, this happens on every file save. By default, VSCode will search for tests on every file save, so will trigger this.

I don't have enough context to know for sure whether there's some immovable constraint that requires this. But would it be possible to put that in a fixture?

Thanks as ever!

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