From 5eb2f15608bead6961da6ba9f56ebbfc6308254e Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 6 Feb 2021 17:32:18 -0500 Subject: test: quiet a misleading coverage miss We need this on Python 2, but in testing environments, a backport is installed, so this import isn't used. --- coverage/backward.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'coverage/backward.py') diff --git a/coverage/backward.py b/coverage/backward.py index 8af3452b..d93ed478 100644 --- a/coverage/backward.py +++ b/coverage/backward.py @@ -78,7 +78,9 @@ except ImportError: try: import reprlib -except ImportError: +except ImportError: # pragma: part covered + # We need this on Python 2, but in testing environments, a backport is + # installed, so this import isn't used. import repr as reprlib # A function to iterate listlessly over a dict's items, and one to get the -- cgit v1.2.1