mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-07 00:23:59 +08:00
Change a test about ellipsis slightly
This commit is contained in:
@@ -86,6 +86,9 @@ def test_tokenizer_with_string_literal_backslash(Script):
|
||||
|
||||
|
||||
def test_ellipsis_without_getitem(Script, environment):
|
||||
def_, = Script('x=...;x').infer()
|
||||
|
||||
assert def_.name == 'ellipsis'
|
||||
results = Script('x=...;x').infer()
|
||||
assert len(results) >= 1
|
||||
# Sometimes this is inferred as both ellipsis and EllipsisType, which is
|
||||
# probably a small bug, but we don't really need to fix this
|
||||
for result in results:
|
||||
assert result.name in ('ellipsis', 'EllipsisType')
|
||||
|
||||
Reference in New Issue
Block a user