[pypy-svn] r9314 - pypy/branch/dist-interpapp/pypy/module/test
arigo at codespeak.net
arigo at codespeak.net
Fri Feb 18 18:50:38 CET 2005
Author: arigo
Date: Fri Feb 18 18:50:37 2005
New Revision: 9314
Modified:
pypy/branch/dist-interpapp/pypy/module/test/test_sysmodule.py
Log:
Enhanced the test for sys.displayhook(). (thanks pedronis)
Modified: pypy/branch/dist-interpapp/pypy/module/test/test_sysmodule.py
==============================================================================
--- pypy/branch/dist-interpapp/pypy/module/test/test_sysmodule.py (original)
+++ pypy/branch/dist-interpapp/pypy/module/test/test_sysmodule.py Fri Feb 18 18:50:37 2005
@@ -115,9 +115,9 @@
dh(None)
assert out.getvalue() == ""
assert not hasattr(__builtin__, "_")
- dh(42)
- assert out.getvalue() == "42\n"
- assert __builtin__._ == 42
+ dh("hello")
+ assert out.getvalue() == "'hello'\n"
+ assert __builtin__._ == "hello"
del sys.stdout
raises(RuntimeError, dh, 42)
More information about the Pypy-commit
mailing list