fix bestrelpath related tests and docstrings
--HG-- branch : 1.0.x
This commit is contained in:
@@ -638,7 +638,9 @@ raise ValueError()
|
||||
repr = excinfo.getrepr(abspath=False)
|
||||
repr.toterminal(tw)
|
||||
line = tw.lines[-1]
|
||||
assert line == "mod.py:3: ValueError"
|
||||
x = py.path.local().bestrelpath(path)
|
||||
if len(x) < len(str(path)):
|
||||
assert line == "mod.py:3: ValueError"
|
||||
|
||||
repr = excinfo.getrepr(abspath=True)
|
||||
repr.toterminal(tw)
|
||||
|
||||
Reference in New Issue
Block a user