Skip to content

Commit 195b0b5

Browse files
committed
corrected name for hello world.
1 parent 67bd3c3 commit 195b0b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runner/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ def pytest_exception_interact(self, node, call, report):
145145
excinfo = call.excinfo
146146
err = excinfo.getrepr(style="no", abspath=False)
147147

148-
# trim off full traceback for first exercise to be friendlier and clearer
149-
if ('lasagna' in node.name or 'hello world') and 'ImportError' in str(err.chain[0]):
148+
# trim off full traceback for first two exercises to be friendlier and clearer
149+
if ('lasagna' in node.name or 'hello_world' in node.name) 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)