[svn r40834] skip test for XXX'ed download urls if version contains "alpha"

--HG--
branch : trunk
This commit is contained in:
hpk
2007-03-20 13:20:33 +01:00
parent e1138243dc
commit f3acdc6623
2 changed files with 9 additions and 4 deletions

View File

@@ -255,5 +255,10 @@ class TestRealModule:
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)