urllib changes
This commit is contained in:
parent
0c0cf92b4c
commit
7d277a8ad5
13 changed files with 50 additions and 55 deletions
|
|
@ -82,7 +82,7 @@ class MiscFunctionTestCase(unittest.TestCase):
|
|||
islink.assert_called_once_with(dst)
|
||||
move.assert_not_called()
|
||||
|
||||
@mock.patch('urllib2.urlopen')
|
||||
@mock.patch('six.moves.urllib.request.urlopen')
|
||||
@mock.patch('tempfile.TemporaryFile')
|
||||
@mock.patch('shutil.copyfileobj')
|
||||
@mock.patch('__builtin__.open')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue