# HG changeset patch # User Ludovic Chabant # Date 1427866736 25200 # Node ID 2a5996e0d3eca468770182b7b71512029565271f # Parent b30ab97e091b049b51b57bc3764b52ef0a78dd2e tests: Raise an exception instead of crashing rudely. diff -r b30ab97e091b -r 2a5996e0d3ec tests/mockutil.py --- a/tests/mockutil.py Mon Mar 30 21:32:08 2015 -0700 +++ b/tests/mockutil.py Tue Mar 31 22:38:56 2015 -0700 @@ -163,6 +163,8 @@ root = self._fs[self._root] if path: root = self._getEntry(self.path(path)) + if root is None: + raise Exception("No such path: %s" % path) res = {} for k, v in root.items():