Improve the stub test a bit

This commit is contained in:
Dave Halter
2019-06-15 02:20:15 +02:00
parent 860f627f48
commit 8e3caaca7f

View File

@@ -75,5 +75,5 @@ def test_infer_and_goto(Script, code, full_name, has_stub, has_python, way,
if only_stubs:
assert d.is_stub()
assert d.full_name == full_name
#if d.is_stub():
#assert d.module_path.endswith('.pyi')
assert d.is_stub() == d.module_path.endswith('.pyi')