Closed kloczek closed 2 years ago
Something seems to be odd about the file system or directory you are in when you run the test suite.
The error you are seeing comes from pytest's tmpdir code:
def _ensure_relative_to_basetemp(self, basename: str) -> str:
basename = os.path.normpath(basename)
if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
raise ValueError(f"{basename} is not a normalized and relative path")
return basename
Can you say more about where you are when you run these tests?
BTW: You mention 5.6b1 in the title. 5.6 will not happen, the latest code is 6.0b1.
I think that we can close that ticket ad I'm trying now switch all my python modules packages to PEP517 based build and I just found new behaviour (will open new ticket shortly)
Describe the bug I'm trying to package your module as an rpm package. So I'm using the typical build, install and test cycle used on building packages from non-root account.
During testing using pytest many pytest fails with
ValueError: . is not a normalized and relative path
error messageAdditionally:
To Reproduce How can we reproduce the problem? Please be specific. Don't just link to a failing CI job. Answer the questions below: -. What version of Python are you using? 3.8.12
coverage debug sys
is helpful. 5.6b1pip freeze
is helpful.Additional context N/A