# HG changeset patch # User Ludovic Chabant # Date 1437714540 25200 # Node ID 2537fe95d771f9e5514f6822af2e56da5a1eefcb # Parent 95b77239c3b785837f526b898855d3247ab3fd7b tests: Fix the Mustache tests on Windows. I'm frankly speechless here -- as much by this bug as by my fix. diff -r 95b77239c3b7 -r 2537fe95d771 tests/test_templating_pystacheengine.py --- a/tests/test_templating_pystacheengine.py Thu Jul 23 22:08:21 2015 -0700 +++ b/tests/test_templating_pystacheengine.py Thu Jul 23 22:09:00 2015 -0700 @@ -49,6 +49,8 @@ route = app.getRoute('pages', None) route_metadata = {'slug': 'foo'} output = render_simple_page(page, route, route_metadata) + # On Windows, pystache unexplicably adds `\r` to some newlines... wtf. + output = output.replace('\r', '') assert output == expected @@ -66,5 +68,7 @@ route = app.getRoute('pages', None) route_metadata = {'slug': 'foo'} output = render_simple_page(page, route, route_metadata) + # On Windows, pystache unexplicably adds `\r` to some newlines... wtf. + output = output.replace('\r', '') assert output == expected