We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62ac923 commit d035013Copy full SHA for d035013
exercises/concept/ellens-alien-game/classes_test.py
@@ -1,3 +1,4 @@
1
+from functools import zip_longest
2
import unittest
3
import pytest
4
@@ -204,7 +205,7 @@ def test_new_aliens_collection(self):
204
205
for obj in actual_result:
206
self.assertIsInstance(obj, Alien, msg=error_message)
207
- for position, obj in zip(test_data, actual_result):
208
+ for position, obj in zip_longest(test_data, actual_result):
209
position_error = (f'After calling new_aliens_collection({test_data}), '
210
f'found {obj} initialized to position {(obj.x_coordinate, obj.y_coordinate)}, '
211
f'but the tests expected {obj} to be at position {position} instead.')
0 commit comments