mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
update loader and test to handle lines with brackets
This commit is contained in:
parent
79c16e9ef8
commit
87cd0db396
2 changed files with 2 additions and 1 deletions
|
|
@ -369,6 +369,7 @@ def test_load_hash_vectors():
|
|||
vector_data = textwrap.dedent("""
|
||||
|
||||
# http://tools.ietf.org/html/rfc1321
|
||||
[irrelevant]
|
||||
|
||||
Len = 0
|
||||
Msg = 00
|
||||
|
|
|
|||
|
|
@ -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"):
|
||||
|
|
|
|||
Loading…
Reference in a new issue