VS2022: AttributeError: module '_pytest.compat' has no attribute '_translate_non_printable' #12222
-
Is this a pytest bug or a Visual Studio 2022 bug? Reverting to pytest v8.0.2 fixes the issue. |
Beta Was this translation helpful? Give feedback.
Answered by
The-Compiler
Apr 22, 2024
Replies: 1 comment 5 replies
-
vscode bug, thats a internal api |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't know how else to put this. Private/internal API (prefixed with
_
in Python, i.e._pytest
) is exactly that: It's private and internal, and might change at any time. Yes, pytest changed, but things broke because VS is using things which aren't meant to be used by external projects in the first place. Thus, it's their job to either fix that, or adjust to pytest's changes.