check that floats and complex numbers are detected as literals

This commit is contained in:
Keewis
2020-08-01 14:20:04 +02:00
parent 92e9cd488c
commit 6be806b3c8

View File

@@ -2003,6 +2003,8 @@ definition_after_normal_text : int
def test_token_type(self):
tokens = (
("1", "literal"),
("-4.6", "literal"),
("2j", "literal"),
("'string'", "literal"),
('"another_string"', "literal"),
("{1, 2}", "literal"),