$ pytest --update-goldens -vv
test_rn.py::test_rn[foo.yaml] PASSED
$ pytest -vv
...
@pytest.mark.golden_test("foo.yaml")
def test_rn(golden):
> assert "foo\r\nbar\r\n" == golden.out.get("foo")
E AssertionError: assert 'foo\r\nbar\r\n' == 'foo\nbar\n'
E - foo
E + foo
E ? +
E - bar
E + bar
E ? +
...
Try this: