GPG: Fix test crash since 57b77a6725.

This commit is contained in:
Valentin Lorentz 2015-10-25 16:27:57 +01:00
parent 1f57c31665
commit a8748c3b73

View File

@ -107,6 +107,7 @@ class GPGTestCase(PluginTestCase):
token = match.group(1) token = match.group(1)
def fakeGetUrlFd(*args, **kwargs): def fakeGetUrlFd(*args, **kwargs):
fd.geturl = lambda :None
return fd return fd
(utils.web.getUrlFd, realGetUrlFd) = (fakeGetUrlFd, utils.web.getUrlFd) (utils.web.getUrlFd, realGetUrlFd) = (fakeGetUrlFd, utils.web.getUrlFd)