diff options
author | Matti Picus <matti.picus@gmail.com> | 2020-07-16 15:03:19 +0300 |
---|---|---|
committer | Matti Picus <matti.picus@gmail.com> | 2020-07-16 15:03:19 +0300 |
commit | 8ff5fb1f8aa433bacc7f431c4c4f8cfb1b6741c5 (patch) | |
tree | ea610bd9177155b643fecb965efa7fa28266baaf /extra_tests | |
parent | typo (thanks nulano) (diff) | |
download | pypy-8ff5fb1f8aa433bacc7f431c4c4f8cfb1b6741c5.tar.gz pypy-8ff5fb1f8aa433bacc7f431c4c4f8cfb1b6741c5.tar.bz2 pypy-8ff5fb1f8aa433bacc7f431c4c4f8cfb1b6741c5.zip |
backport test (issue 3269)
Diffstat (limited to 'extra_tests')
-rw-r--r-- | extra_tests/test_startup.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/extra_tests/test_startup.py b/extra_tests/test_startup.py new file mode 100644 index 0000000000..3f3739a4c2 --- /dev/null +++ b/extra_tests/test_startup.py @@ -0,0 +1,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 |