From af6071e5719aef6650370ffee504e0e98e1dc1a2 Mon Sep 17 00:00:00 2001 From: Keewis Date: Fri, 29 May 2020 21:58:44 +0200 Subject: [PATCH] expect a warning instead of an error --- tests/test_ext_napoleon_docstring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_ext_napoleon_docstring.py b/tests/test_ext_napoleon_docstring.py index 49479fa59..abde56212 100644 --- a/tests/test_ext_napoleon_docstring.py +++ b/tests/test_ext_napoleon_docstring.py @@ -1999,7 +1999,7 @@ definition_after_normal_text : int ) for input_tokens in invalid_tokens: - with self.assertRaisesRegex(ValueError, "invalid value set:"): + with self.assertWarnsRegex(UserWarning, "invalid value set:"): _recombine_set_tokens(input_tokens)