[pypy-svn] r3465 - pypy/trunk/src/goal

sanxiyn at codespeak.net sanxiyn at codespeak.net
Mon Mar 29 04:15:16 CEST 2004


Author: sanxiyn
Date: Mon Mar 29 04:15:15 2004
New Revision: 3465

Added:
   pypy/trunk/src/goal/http-and-html.py
Log:
HTTP and HTML test.

As of r3464, works in TrivialObjSpace (slow).

StdObjSpace cannot import random because of super. htmllib imports
mimetools, mimetools imports tempfile, tempfile imports random.
So it does not work now.



Added: pypy/trunk/src/goal/http-and-html.py
==============================================================================
--- (empty file)
+++ pypy/trunk/src/goal/http-and-html.py	Mon Mar 29 04:15:15 2004
@@ -0,0 +1,9 @@
+url = 'http://www.python.org/'
+html = 'python.html'
+import urllib
+content = urllib.urlopen(url).read()
+file(html, 'w').write(content)
+import htmllib
+htmllib.test([html])
+import os
+os.remove(html)


More information about the Pypy-commit mailing list