mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
also test invalid string tokens
This commit is contained in:
parent
1140f7b26d
commit
26855f92d8
@ -2008,14 +2008,18 @@ definition_after_normal_text : int
|
||||
def test_token_type_invalid(self):
|
||||
tokens = (
|
||||
"{1, 2",
|
||||
"1, 2}",
|
||||
"}",
|
||||
"'abc",
|
||||
"def'",
|
||||
'"ghi',
|
||||
'jkl"',
|
||||
)
|
||||
for token in tokens:
|
||||
# TODO: check for the warning
|
||||
_token_type(token)
|
||||
|
||||
assert False
|
||||
|
||||
def test_tokenize_type_spec(self):
|
||||
types = (
|
||||
"str",
|
||||
|
Loading…
Reference in New Issue
Block a user