[pypy-commit] pypy default: Test for 1c6dc3e6e70c.
arigo
noreply at buildbot.pypy.org
Wed Mar 21 14:31:09 CET 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r53868:da21b53693bd
Date: 2012-03-20 21:24 +0100
http://bitbucket.org/pypy/pypy/changeset/da21b53693bd/
Log: Test for 1c6dc3e6e70c.
diff --git a/lib_pypy/pypy_test/test_site_extra.py b/lib_pypy/pypy_test/test_site_extra.py
new file mode 100644
--- /dev/null
+++ b/lib_pypy/pypy_test/test_site_extra.py
@@ -0,0 +1,13 @@
+import sys, os
+
+
+def test_preimported_modules():
+ lst = ['__builtin__', '_codecs', '_warnings', 'codecs', 'encodings',
+ 'exceptions', 'signal', 'sys', 'zipimport']
+ g = os.popen("'%s' -c 'import sys; print sorted(sys.modules)'" %
+ (sys.executable,))
+ real_data = g.read()
+ g.close()
+ for name in lst:
+ quoted_name = repr(name)
+ assert quoted_name in real_data
More information about the pypy-commit
mailing list