Mercurial > piecrust2
diff tests/conftest.py @ 493:95b77239c3b7
tests: Fix `find` tests on Windows.
We need to expect OS-appropriate path separators in the output.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 23 Jul 2015 22:08:21 -0700 |
parents | 456db44dcc53 |
children | bab91fcef741 |
line wrap: on
line diff
--- a/tests/conftest.py Thu Jul 23 22:07:32 2015 -0700 +++ b/tests/conftest.py Thu Jul 23 22:08:21 2015 -0700 @@ -145,7 +145,11 @@ logging.getLogger().removeHandler(hdl) assert expected_code == exit_code - assert expected_out == memstream.getvalue() + + actual_out = memstream.getvalue() + if self.spec.get('replace_out_path_sep'): + expected_out = expected_out.replace('/', os.sep) + assert expected_out == actual_out def reportinfo(self): return self.fspath, 0, "bake: %s" % self.name