diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-08-01 15:49:34 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-08-01 15:49:34 -0400 |
commit | 877bdf01d60fb0b56dae31e1b8a2bdad2a9f4fc2 (patch) | |
tree | 6fd3cc6ff884c247e5bb1723861342e529e94e06 /tests/utils.py | |
parent | 0cfb17936ebb9bbfcb9a13e21f2437da4112176f (diff) | |
parent | ac78c866d3fd94c3de0e8a33e18654a312083c3e (diff) | |
download | cryptography-877bdf01d60fb0b56dae31e1b8a2bdad2a9f4fc2.tar.gz cryptography-877bdf01d60fb0b56dae31e1b8a2bdad2a9f4fc2.tar.bz2 cryptography-877bdf01d60fb0b56dae31e1b8a2bdad2a9f4fc2.zip |
Merge pull request #2184 from reaperhulk/remove-more-branches
Branch coverage to 100%
Diffstat (limited to 'tests/utils.py')
-rw-r--r-- | tests/utils.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/utils.py b/tests/utils.py index 5083d48c..7e7abdf1 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -539,8 +539,8 @@ def load_fips_ecdsa_key_pair_vectors(vector_data): elif line.startswith("Qy = "): key_data["y"] = int(line.split("=")[1], 16) - if key_data is not None: - vectors.append(key_data) + assert key_data is not None + vectors.append(key_data) return vectors @@ -559,9 +559,6 @@ def load_fips_ecdsa_signing_vectors(vector_data): for line in vector_data: line = line.strip() - if not line or line.startswith("#"): - continue - curve_match = curve_rx.match(line) if curve_match: curve_name = _ECDSA_CURVE_NAMES[curve_match.group("curve")] @@ -593,8 +590,8 @@ def load_fips_ecdsa_signing_vectors(vector_data): elif line.startswith("Result = "): data["fail"] = line.split("=")[1].strip()[0] == "F" - if data is not None: - vectors.append(data) + assert data is not None + vectors.append(data) return vectors |