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 --- Jenkinsfile | 2 +- tests/utils.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0e4c60ce..60195a68 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -51,7 +51,7 @@ def configs = [ [ label: 'docker', imageName: 'pyca/cryptography-runner-sid', - toxenvs: ['py27', 'py35'], + toxenvs: ['py27', 'py36'], ], [ label: 'docker', 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