Skip to content

Running python tests in a multi project workspace results in an import error #21913

Open
@amircodota

Description

@amircodota

Describe the bug
I have a multi-project repo with inter-dependencies between python packages.
I'm running into issues running tests where importing dependencies fails when ran from pants test.
When I run pants run dependencies are resolved correctly nd everything works

Pants version
2.23.1

OS
Linux

Additional info

I created a small repro project, thac can be found here
In the README you'll find more details on the project structure and how to reproduce the issue I'm seeing.

I suspect it has to do with pythonpath not being correctly set for tests, but I could be completely wrong.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions