From 85fe53f5e32708f23088cca0fc8b5d58fb536cd5 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 14 Mar 2017 17:07:04 -0700 Subject: [PATCH] coverage: Don't require test coverage for __unicode__ methods. These are usually just used for manual debugging, and so aren't super important to make sure we have tests for always. --- tools/coveragerc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/coveragerc b/tools/coveragerc index c8e40dfcaa..a9cb67c82d 100644 --- a/tools/coveragerc +++ b/tools/coveragerc @@ -12,6 +12,8 @@ exclude_lines = # Don't require coverage for Python 2/3 variations; it's impossible to cover on both if six.PY3: if six.PY2: + # Don't require coverage for __unicode__ statements just used for printing + def __unicode__[(]self[)]: [run] omit =