update loader and test to handle lines with brackets

This commit is contained in:
Paul Kehrer 2013-10-18 18:01:26 -05:00
parent 79c16e9ef8
commit 87cd0db396
2 changed files with 2 additions and 1 deletions

View file

@ -369,6 +369,7 @@ def test_load_hash_vectors():
vector_data = textwrap.dedent("""
# http://tools.ietf.org/html/rfc1321
[irrelevant]
Len = 0
Msg = 00

View file

@ -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"):