From a4e9da22e04ac9fd250f14e9ad67524af88f3880 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 22 Nov 2017 12:16:24 -0800 Subject: [PATCH] coverage: Update pattern for __str__ for new typing syntax. The new Python 3 typing syntax means the def lines for __str__ can look a bit different. --- tools/coveragerc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/coveragerc b/tools/coveragerc index 2b1c55e964..617a673fb7 100644 --- a/tools/coveragerc +++ b/tools/coveragerc @@ -10,7 +10,7 @@ exclude_lines = # Don't require coverage for test suite AssertionError -- they're usually for clarity raise AssertionError # Don't require coverage for __str__ statements just used for printing - def __str__[(]self[)]: + def __str__[(]self[)] -> .*: [run] omit =