diff --git a/tests/unittests/general/bulkparse_test.py b/tests/unittests/general/bulkparse_test.py index 2fcba55a93..4fbf54a4c2 100644 --- a/tests/unittests/general/bulkparse_test.py +++ b/tests/unittests/general/bulkparse_test.py @@ -2,6 +2,8 @@ # pylint: disable=C0111, C0103, W0614 +import itertools + import pytest from nav import bulkparse @@ -84,7 +86,7 @@ def test_three_lines_with_two_rows_should_be_counted_as_three(self): b"room1:10.0.0.187:myorg:OTHER:SNMP v2c read profile::\n" ) b = bulkparse.NetboxBulkParser(data) - out_data = list(b) + itertools.consume(b) assert b.line_num == 3 def test_short_line_should_raise_error(self):