]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
Fix failure in test_local_host resulting from attempting to add tuple to list.
authorIvan Malison <IvanMalison@gmail.com>
Thu, 18 Sep 2014 04:48:28 +0000 (21:48 -0700)
committerIvan Malison <IvanMalison@gmail.com>
Thu, 18 Sep 2014 04:48:28 +0000 (21:48 -0700)
vcr/cassette.py

index b1864f25b5f70b8eddb1df1dccfb3246e1b4b176..b39ae9cab08be5223537acb6c659e6256e2e2cb6 100644 (file)
@@ -71,7 +71,7 @@ class Cassette(object):
         self._ignore_hosts = ignore_hosts
         if ignore_localhost:
             self._ignore_hosts = list(set(
-                self._ignore_hosts + ['localhost', '0.0.0.0', '127.0.0.1']
+                list(self._ignore_hosts) + ['localhost', '0.0.0.0', '127.0.0.1']
             ))
 
         # self.data is the list of (req, resp) tuples