[svn r40834] skip test for XXX'ed download urls if version contains "alpha"
--HG-- branch : trunk
This commit is contained in:
		
							parent
							
								
									e1138243dc
								
							
						
					
					
						commit
						f3acdc6623
					
				| 
						 | 
					@ -11,11 +11,11 @@ version = "0.9.1-alpha"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
initpkg(__name__,
 | 
					initpkg(__name__,
 | 
				
			||||||
    description = "py lib: agile development and test support library",
 | 
					    description = "py lib: agile development and test support library",
 | 
				
			||||||
    revision = int('$LastChangedRevision: 40832 $'.split(':')[1][:-1]),
 | 
					    revision = int('$LastChangedRevision: 40834 $'.split(':')[1][:-1]),
 | 
				
			||||||
    lastchangedate = '$LastChangedDate: 2007-03-20 13:11:31 +0100 (Tue, 20 Mar 2007) $',
 | 
					    lastchangedate = '$LastChangedDate: 2007-03-20 13:20:33 +0100 (Tue, 20 Mar 2007) $',
 | 
				
			||||||
    version = version, 
 | 
					    version = version, 
 | 
				
			||||||
    url = "http://codespeak.net/py",
 | 
					    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",
 | 
					    license = "MIT license",
 | 
				
			||||||
    platforms = ['unix', 'linux', 'cygwin', 'win32'],
 | 
					    platforms = ['unix', 'linux', 'cygwin', 'win32'],
 | 
				
			||||||
    author = "holger krekel, Carl Friedrich Bolz, Guido Wesdorp, Maciej Fijalkowski, Armin Rigo & others",
 | 
					    author = "holger krekel, Carl Friedrich Bolz, Guido Wesdorp, Maciej Fijalkowski, Armin Rigo & others",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -255,5 +255,10 @@ class TestRealModule:
 | 
				
			||||||
def test_url_of_version():
 | 
					def test_url_of_version():
 | 
				
			||||||
    #py.test.skip("FAILING! - provide a proper URL or upload pylib tgz")
 | 
					    #py.test.skip("FAILING! - provide a proper URL or upload pylib tgz")
 | 
				
			||||||
    from urllib import URLopener
 | 
					    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) 
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue