mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-12 02:04:04 +02:00
- fixed testsuite
This commit is contained in:
@@ -72,7 +72,7 @@ class MyHTTPHandler(urllib2.HTTPHandler):
|
|||||||
f = StringIO.StringIO(kwargs['text'])
|
f = StringIO.StringIO(kwargs['text'])
|
||||||
else:
|
else:
|
||||||
raise RuntimeError('either specify text or file')
|
raise RuntimeError('either specify text or file')
|
||||||
resp = urllib2.addinfourl(f, '', url)
|
resp = urllib2.addinfourl(f, {}, url)
|
||||||
resp.code = 200
|
resp.code = 200
|
||||||
resp.msg = ''
|
resp.msg = ''
|
||||||
return resp
|
return resp
|
||||||
|
Reference in New Issue
Block a user