We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
def test_memory_loader_fails_invalid(value: Any, of_type: type[Any], exception: Exception, msg: str) -> None: loader = MemoryLoader(**{"a": value}, kwargs={}) args = ConfigLoadArgs([], "name", None) > with pytest.raises(exception, match=msg): # type: ignore[call-overload] E AssertionError: Regex pattern did not match. E Regex: 'expected str, bytes or os.PathLike object' E Input: "argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'type'" args = <tox.config.loader.api.ConfigLoadArgs object at 0x7f17242dfa40> exception = <class 'TypeError'> loader = MemoryLoader msg = 'expected str, bytes or os.PathLike object' of_type = <class 'pathlib.Path'> value = <class 'object'> tests/config/loader/test_memory_loader.py:77: AssertionError
The text was updated successfully, but these errors were encountered:
Update a test regex to work with Python 3.12+
bf13dbd
Fixes tox-dev#3065 New message: "argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'type'"
Update a test regex to work with Python 3.12+ (#3066)
869040b
Fixes #3065 New message: "argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'type'"
Successfully merging a pull request may close this issue.
Issue
Environment
I will submit a pull request
The text was updated successfully, but these errors were encountered: