From 87cd0db396e157b3fb160b8b6fd770e2c661ace2 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Fri, 18 Oct 2013 18:01:26 -0500 Subject: update loader and test to handle lines with brackets --- tests/test_utils.py | 1 + tests/utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_utils.py b/tests/test_utils.py index e68f6a7f..a9bb6a87 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -369,6 +369,7 @@ def test_load_hash_vectors(): vector_data = textwrap.dedent(""" # http://tools.ietf.org/html/rfc1321 + [irrelevant] Len = 0 Msg = 00 diff --git a/tests/utils.py b/tests/utils.py index cf255334..03b780f8 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -127,7 +127,7 @@ def load_hash_vectors(vector_data): for line in vector_data: line = line.strip() - if not line or line.startswith("#"): + if not line or line.startswith("#") or line.startswith("["): continue if line.startswith("Len"): -- cgit v1.2.3