Skip to content

Commit c230448

Browse files
authored
Fixed final test and error message. Sometimes, I am an idiot. (#3792)
[no important files changed] The test has changed, but this will allow more passing code without need for retest.
1 parent df381d8 commit c230448

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

exercises/concept/plane-tickets/generators_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,7 @@ def test_generate_codes(self):
134134
f'The function returned {actual_result}, but the tests '
135135
f'expected {expected} when generating ticket numbers.')
136136

137-
self.assertEqual(list(generate_codes(seat_numbers, flight_id)), expected, msg=error_message)
137+
# Note: DO NOT call the function here again, in case the student is using list.pop()
138+
# to process the input. If another call is done with that condition,
139+
# the test will fail with a terrible error message.
140+
self.assertEqual(actual_result, expected, msg=error_message)

0 commit comments

Comments
 (0)