From ece3872d095c303e882fc74384dc34c37b250511 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 27 Jun 2015 17:19:30 -0400 Subject: Simplified code in the test loaders and improved branch coverage in the x509 tests --- tests/utils.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'tests/utils.py') diff --git a/tests/utils.py b/tests/utils.py index 46d93646..5a3f475b 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -396,10 +396,6 @@ def load_fips_dsa_key_pair_vectors(vector_data): continue elif line.startswith("[mod = L=3072"): continue - - if not reading_key_data: - continue - elif reading_key_data: if line.startswith("P"): vectors.append({'p': int(line.split("=")[1], 16)}) -- cgit v1.2.3 From 0fe7db62cdd2c1395733005f6a3eef02aa720552 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 27 Jun 2015 17:20:59 -0400 Subject: fix --- tests/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/utils.py') diff --git a/tests/utils.py b/tests/utils.py index 5a3f475b..8be5c1fa 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -396,7 +396,8 @@ def load_fips_dsa_key_pair_vectors(vector_data): continue elif line.startswith("[mod = L=3072"): continue - elif reading_key_data: + + if reading_key_data: if line.startswith("P"): vectors.append({'p': int(line.split("=")[1], 16)}) elif line.startswith("Q"): -- cgit v1.2.3