Author: Armin Rigo <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to