Skip to content

Commit 67bd3c3

Browse files
committed
Added Hello World to the stack trace trunkation logic.
1 parent 020aca1 commit 67bd3c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runner/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def pytest_exception_interact(self, node, call, report):
146146
err = excinfo.getrepr(style="no", abspath=False)
147147

148148
# trim off full traceback for first exercise to be friendlier and clearer
149-
if 'lasagna' in node.name and 'ImportError' in str(err.chain[0]):
149+
if ('lasagna' in node.name or 'hello world') and 'ImportError' in str(err.chain[0]):
150150
trace = err.chain[-2][0]
151151
else:
152152
trace = err.chain[-1][0]

0 commit comments

Comments
 (0)