# HG changeset patch # User Ludovic Chabant # Date 1437628902 25200 # Node ID 152a15046b417b39c047b0949a7025f9d8a94b5e # Parent 4a9047850657ccabd38b0a5695168f584a957e5f tests: Normalize test paths using the correct method. diff -r 4a9047850657 -r 152a15046b41 tests/basefs.py --- a/tests/basefs.py Wed Jul 22 22:20:35 2015 -0700 +++ b/tests/basefs.py Wed Jul 22 22:21:42 2015 -0700 @@ -33,16 +33,12 @@ return PieCrust(root_dir, cache=cache, debug=True) def withDir(self, path): - path = path.replace('\\', '/') - path = path.lstrip('/') - path = '/%s/%s' % (self._root, path) + path = self.path(path) self._createDir(path) return self def withFile(self, path, contents): - path = path.replace('\\', '/') - path = path.lstrip('/') - path = '/%s/%s' % (self._root, path) + path = self.path(path) self._createFile(path, contents) return self