mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-07 10:54:32 +08:00
Eliminate CompiledObject.type
This commit is contained in:
1 parent
4dc2ad281d
commit
1a7fc512bc
2 files changed
+2
-14
No files matched your search
@@ -35,6 +35,6 @@ def evaluator():
|
||||
def test_import_module(evaluator):
|
||||
compiled_obj = evaluator.compiled_subprocess.import_module(name='math')
|
||||
assert compiled_obj.py__bool__() is True
|
||||
assert compiled_obj.type == 'file_input'
|
||||
assert compiled_obj.api_type == 'module'
|
||||
with pytest.raises(AttributeError):
|
||||
assert compiled_obj.py__mro__()
|
||||
Reference in new issue
Block a user