File tree 2 files changed +5
-3
lines changed 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -676,7 +676,9 @@ def mkrel(nodeid):
676
676
677
677
if fspath :
678
678
res = mkrel (nodeid ).replace ("::()" , "" ) # parens-normalization
679
- if nodeid .split ("::" )[0 ] != fspath .replace ("\\ " , nodes .SEP ):
679
+ if self .verbosity >= 2 and nodeid .split ("::" )[0 ] != fspath .replace (
680
+ "\\ " , nodes .SEP
681
+ ):
680
682
res += " <- " + self .startdir .bestrelpath (fspath )
681
683
else :
682
684
res = "[location]"
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ class TestMore(BaseTests):
154
154
)
155
155
result = testdir .runpytest (p2 )
156
156
result .stdout .fnmatch_lines (["*test_p2.py .*" , "*1 passed*" ])
157
- result = testdir .runpytest ("-v " , p2 )
157
+ result = testdir .runpytest ("-vv " , p2 )
158
158
result .stdout .fnmatch_lines (
159
159
["*test_p2.py::TestMore::test_p1* <- *test_p1.py*PASSED*" ]
160
160
)
@@ -170,7 +170,7 @@ def test_method(self):
170
170
"""
171
171
)
172
172
)
173
- result = testdir .runpytest ("-v " )
173
+ result = testdir .runpytest ("-vv " )
174
174
assert result .ret == 0
175
175
result .stdout .fnmatch_lines (["*a123/test_hello123.py*PASS*" ])
176
176
assert " <- " not in result .stdout .str ()
You can’t perform that action at this time.
0 commit comments