Description[path] Fix root path mocking.
Currently, mocking a root path (e.g., "/foo/bar") will result in
infinite recursion due to dirname on the root element equalling itself.
Fix this by detecting when a "dirname" yields itself and observing this
as a terminal condition.
BUG=None
TEST=expectations
R=iannucci@chromium.org, vadimsh@chromium.org
Review-Url: https://codereview.chromium.org/2988583002
Committed: https://github.com/luci/recipes-py/commit/8e8339afbdb986a9195a97cb2c173984bdd4b758
Patch Set 1 #Patch Set 2 : use real paths #
Messages
Total messages: 18 (8 generated)
|