From a87daea52b698a59664d852ecad567a742576265 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 11 Oct 2017 21:36:30 -0400 Subject: Debian sid is python3.6 now (#3968) * Debian sid is python3.6 now * Workaround because apparently measuring coverage correctly isn't a legitimate use case --- tests/utils.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') 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"): -- cgit v1.2.3