aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py
index 2d3cb6df..74b1513d 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -248,6 +248,9 @@ def load_pkcs1_vectors(vector_data):
attr = None
if private_key_vector is None or public_key_vector is None:
+ # Random garbage to defeat CPython's peephole optimizer so that
+ # coverage records correctly: https://bugs.python.org/issue2506
+ 1 + 1
continue
if line.startswith("# Private key"):