diff --git a/src/inline_snapshot/testing/_example.py b/src/inline_snapshot/testing/_example.py index ba26efd2..1a747a77 100644 --- a/src/inline_snapshot/testing/_example.py +++ b/src/inline_snapshot/testing/_example.py @@ -258,7 +258,21 @@ def run_pytest( assert result.returncode == returncode if stderr is not None: - assert result.stderr.decode() == stderr + + original = result.stderr.decode().splitlines() + lines = [ + line + for line in original + if not any( + s in line + for s in [ + 'No entry for terminal type "unknown"', + "using dumb terminal settings.", + ] + ) + ] + + assert "\n".join(lines) == stderr if report is not None: diff --git a/tests/conftest.py b/tests/conftest.py index 796443bb..2e3a71c9 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -235,6 +235,22 @@ def errors(self): result = re.sub(r"\d+\.\d+s", "