mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
expect a warning instead of an error
This commit is contained in:
parent
dc8c7ac9f8
commit
af6071e571
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user