[pypy-svn] r64391 - pypy/trunk/pypy/doc
arigo at codespeak.net
arigo at codespeak.net
Sun Apr 19 18:08:43 CEST 2009
Author: arigo
Date: Sun Apr 19 18:08:43 2009
New Revision: 64391
Modified:
pypy/trunk/pypy/doc/test_redirections.py
Log:
Fix the test to accept absolute redirections.
Modified: pypy/trunk/pypy/doc/test_redirections.py
==============================================================================
--- pypy/trunk/pypy/doc/test_redirections.py (original)
+++ pypy/trunk/pypy/doc/test_redirections.py Sun Apr 19 18:08:43 2009
@@ -9,8 +9,9 @@
def checkredirection(oldname, newname):
print "checking", newname
- newpath = redir.dirpath(newname.split('#')[0])
- checkexist(newpath)
+ if not newname.startswith('http://'):
+ newpath = redir.dirpath(newname.split('#')[0])
+ checkexist(newpath)
# HACK: create the redirecting HTML file here...
# XXX obscure fishing
if py.test.config.option.generateredirections and '#' not in oldname:
More information about the Pypy-commit
mailing list