[pypy-svn] r28723 - pypy/dist/pypy/rpython/rctypes/tool/test

arigo at codespeak.net arigo at codespeak.net
Mon Jun 12 19:13:35 CEST 2006


Author: arigo
Date: Mon Jun 12 19:13:33 2006
New Revision: 28723

Modified:
   pypy/dist/pypy/rpython/rctypes/tool/test/test_compilemodule.py
Log:
Add readline as a compilemodule test.  For now it mainly test
that it compiles successfully; testing readline is not completely obvious...


Modified: pypy/dist/pypy/rpython/rctypes/tool/test/test_compilemodule.py
==============================================================================
--- pypy/dist/pypy/rpython/rctypes/tool/test/test_compilemodule.py	(original)
+++ pypy/dist/pypy/rpython/rctypes/tool/test/test_compilemodule.py	Mon Jun 12 19:13:33 2006
@@ -6,3 +6,7 @@
     res = mod.measuretime(1000, long)
     assert type(res) is int
     py.test.raises(mod.DemoError, mod.measuretime, -5, long)
+
+def test_readline():
+    mod = compilemodule('readline')
+    assert hasattr(mod, 'readline')    # XXX test more



More information about the Pypy-commit mailing list