@@ -30,19 +30,19 @@ def test_import_as_submodule_within_function() -> None:
30
30
# assert 'nob' not in globals()
31
31
32
32
def test_import_module_without_stub_in_function() -> None:
33
- # 'virtualenv ' must not have a stub in typeshed for this test case
34
- import virtualenv # type: ignore
33
+ # 'psutil ' must not have a stub in typeshed for this test case
34
+ import psutil # type: ignore
35
35
# TODO: We shouldn't add local imports to globals()
36
- # assert 'virtualenv ' not in globals()
37
- assert isinstance(virtualenv .__name__, str)
36
+ # assert 'psutil ' not in globals()
37
+ assert isinstance(psutil .__name__, str)
38
38
39
39
def test_import_as_module_without_stub_in_function() -> None:
40
- # 'virtualenv ' must not have a stub in typeshed for this test case
41
- import virtualenv as vv # type: ignore
42
- assert 'virtualenv ' not in globals()
40
+ # 'psutil ' must not have a stub in typeshed for this test case
41
+ import psutil as pp # type: ignore
42
+ assert 'psutil ' not in globals()
43
43
# TODO: We shouldn't add local imports to globals()
44
- # assert 'vv ' not in globals()
45
- assert isinstance(vv .__name__, str)
44
+ # assert 'pp ' not in globals()
45
+ assert isinstance(pp .__name__, str)
46
46
47
47
[file testmodule.py]
48
48
def factorial(x: int) -> int:
0 commit comments