-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: PurePosixPath('.') has an empty name #10764
Comments
Could you please describe a project layout or example where you have got this error? Could not reproduce it. |
This issue is stale because it has been open for 14 days with no activity. |
This issue was closed because it has been inactive for 7 days since being marked as stale. |
@theirix can confirm this still exists. I use this code to import a module at runtime:
that module contains a relative import:
which triggers the error. the import has to be relative in order to trigger |
#11426 should be there fix |
@RonnyPfannschmidt I did a fresh |
Can you please share the full output and ideally a reproducer we can run? |
Wait, what does the code posted in #10764 (comment) has to do with pytest? IIUC, that's custom code which uses |
Hi, I'm running Python 3.11.2 and pytest 7.2.1 on macOS (Ventura 13.1) with Apple Silicon and I'm running into the following error:
I was able to trace the error to this change: f92c4a7
The error occurs when calling
with_suffix
whenparts
is an empty list. Here's an example:I haven't been able to figure out why
parts
is ever empty, but with what I know I was able to temporarily workaround this problem by downgrading to pytest 7.1.2.The text was updated successfully, but these errors were encountered: