blob: 3f3739a4c2649a2ea189fa8b65ed55e7f3ef9317 (
plain)
1
2
3
4
5
6
7
8
9
|
def test_platform_not_imported():
import subprocess
import sys
out = subprocess.check_output([sys.executable, '-c',
'import sys; print(list(sys.modules.keys()))'], universal_newlines=True)
modules = [x.strip(' "\'') for x in out.strip().strip('[]').split(',')]
assert 'platform' not in modules
assert 'threading' not in modules
|