diff options
-rw-r--r-- | quality_control/parsing.py | 1 | ||||
-rw-r--r-- | tests/qc/test_error_collection.py | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/quality_control/parsing.py b/quality_control/parsing.py index e9bd5f7..eb4c989 100644 --- a/quality_control/parsing.py +++ b/quality_control/parsing.py @@ -120,6 +120,7 @@ def parse_errors(filepath: str, filetype: FileType, strains: list, "error": __error_type(err), "message": err.args } + seek_pos = seek_pos + len(line) return ( error for error in __errors(filepath, filetype, strains, seek_pos) diff --git a/tests/qc/test_error_collection.py b/tests/qc/test_error_collection.py index f1bd8b9..3a26d9c 100644 --- a/tests/qc/test_error_collection.py +++ b/tests/qc/test_error_collection.py @@ -28,7 +28,6 @@ def test_parse_errors(filepath, filetype, strains, seek_pos): assert "error" in error and isinstance(error["error"], str) assert "message" in error - @pytest.mark.parametrize( "sample,num,expected", ((range(0,25), 5, [0, 1, 2, 3, 4]), |