From 43eab917a1d174808f1975364f64214f98b094a8 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Tue, 20 Aug 2019 15:41:32 +0300 Subject: [PATCH] Fix coverage --- src/_pytest/compat.py | 2 +- testing/python/raises.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_pytest/compat.py b/src/_pytest/compat.py index 596a8fd0f0f..2d6e8eb6b86 100644 --- a/src/_pytest/compat.py +++ b/src/_pytest/compat.py @@ -350,7 +350,7 @@ def funcargnames(self): return self.fixturenames -if sys.version_info < (3, 5, 2): +if sys.version_info < (3, 5, 2): # pragma: no cover def overload(f): # noqa: F811 return f diff --git a/testing/python/raises.py b/testing/python/raises.py index 4607ef32768..28b0715c01a 100644 --- a/testing/python/raises.py +++ b/testing/python/raises.py @@ -166,7 +166,7 @@ def __call__(self): # Early versions of Python 3.5 have some bug causing the # __call__ frame to still refer to t even after everything # is done. This makes the test pass for them. - if sys.version_info < (3, 5, 2): + if sys.version_info < (3, 5, 2): # pragma: no cover del self raise ValueError