[py-svn] r40834 - in py/trunk/py: . misc/testing
hpk at codespeak.net
hpk at codespeak.net
Tue Mar 20 13:20:34 CET 2007
Author: hpk
Date: Tue Mar 20 13:20:33 2007
New Revision: 40834
Modified:
py/trunk/py/__init__.py
py/trunk/py/misc/testing/test_initpkg.py
Log:
skip test for XXX'ed download urls if version contains "alpha"
Modified: py/trunk/py/__init__.py
==============================================================================
--- py/trunk/py/__init__.py (original)
+++ py/trunk/py/__init__.py Tue Mar 20 13:20:33 2007
@@ -15,7 +15,7 @@
lastchangedate = '$LastChangedDate$',
version = version,
url = "http://codespeak.net/py",
- download_url = "xxx", # "http://codespeak.net/download/py/py-%s.tar.gz" %(version,),
+ download_url = "XXX", # "http://codespeak.net/download/py/py-%s.tar.gz" %(version,),
license = "MIT license",
platforms = ['unix', 'linux', 'cygwin', 'win32'],
author = "holger krekel, Carl Friedrich Bolz, Guido Wesdorp, Maciej Fijalkowski, Armin Rigo & others",
Modified: py/trunk/py/misc/testing/test_initpkg.py
==============================================================================
--- py/trunk/py/misc/testing/test_initpkg.py (original)
+++ py/trunk/py/misc/testing/test_initpkg.py Tue Mar 20 13:20:33 2007
@@ -255,5 +255,10 @@
def test_url_of_version():
#py.test.skip("FAILING! - provide a proper URL or upload pylib tgz")
from urllib import URLopener
- URLopener().open(py.__package__.download_url)
+ url = py.__package__.download_url
+ if url.lower() == "xxx":
+ assert py.__package__.version.find("alpha") != -1
+ else:
+ URLopener().open(url)
+
More information about the py-svn
mailing list