diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-10-18 18:01:26 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-10-18 18:02:21 -0500 |
commit | 87cd0db396e157b3fb160b8b6fd770e2c661ace2 (patch) | |
tree | c4e19178f5f21a5c7d331ab37a8132e18477b9af | |
parent | 79c16e9ef8d0454c64310ccd5faa7fd7dca26313 (diff) | |
download | cryptography-87cd0db396e157b3fb160b8b6fd770e2c661ace2.tar.gz cryptography-87cd0db396e157b3fb160b8b6fd770e2c661ace2.tar.bz2 cryptography-87cd0db396e157b3fb160b8b6fd770e2c661ace2.zip |
update loader and test to handle lines with brackets
-rw-r--r-- | tests/test_utils.py | 1 | ||||
-rw-r--r-- | tests/utils.py | 2 |
2 files changed, 2 insertions, 1 deletions
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"): |