Skip to content

Commit a1a1c79

Browse files
author
hauntsaninja
committed
fix one test
1 parent 18ff4c3 commit a1a1c79

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

mypyc/test-data/run-imports.test

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ def test_import_as_submodule_within_function() -> None:
3030
# assert 'nob' not in globals()
3131

3232
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
3535
# 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)
3838

3939
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()
4343
# 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)
4646

4747
[file testmodule.py]
4848
def factorial(x: int) -> int:

0 commit comments

Comments
 (0)