[pypy-svn] rev 2004 - pypy/trunk/src/pypy/module/test
mwh at codespeak.net
mwh at codespeak.net
Fri Oct 17 16:44:18 CEST 2003
Author: mwh
Date: Fri Oct 17 16:44:18 2003
New Revision: 2004
Modified:
pypy/trunk/src/pypy/module/test/test_sysmodule.py
Log:
add a couple of (failing) unittests for the presence of sys.path
and sys.modules.
hpk says he'll fix them soon :-)
Modified: pypy/trunk/src/pypy/module/test/test_sysmodule.py
==============================================================================
--- pypy/trunk/src/pypy/module/test/test_sysmodule.py (original)
+++ pypy/trunk/src/pypy/module/test/test_sysmodule.py Fri Oct 17 16:44:18 2003
@@ -12,6 +12,14 @@
s = self.space
self.failUnless_w(s.getattr(self.sys_w, s.wrap("stdout")))
+class AppSysTests(test.AppTestCase):
+ def test_path_exists(self):
+ import sys
+ self.failUnless(hasattr(sys, 'path'), "sys.path gone missing")
+ def test_modules_exists(self):
+ import sys
+ self.failUnless(hasattr(sys, 'modules'), "sys.modules gone missing")
+
if __name__ == '__main__':
test.main()
More information about the Pypy-commit
mailing list