mirror of
https://github.com/davidhalter/jedi.git
synced 2026-07-10 21:36:30 +08:00
Change some tests slightly
This commit is contained in:
@@ -134,7 +134,7 @@ def test_infer_on_non_name(Script):
|
||||
def test_infer_on_generator(Script, environment):
|
||||
script = Script('def x(): yield 1\ny=x()\ny')
|
||||
def_, = script.infer()
|
||||
assert def_.name == 'Generator'
|
||||
assert def_.name == 'GeneratorType'
|
||||
def_, = script.infer(only_stubs=True)
|
||||
assert def_.name == 'Generator'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user