]> khamidou — GitHub mirrors - vcrpy.git/commit
For Tornado AsyncHTTPClient, replace the methods instead of the class.
authorAbhinav Gupta <abg@uber.com>
Wed, 12 Aug 2015 17:42:00 +0000 (10:42 -0700)
committerAbhinav Gupta <abg@uber.com>
Wed, 12 Aug 2015 17:51:08 +0000 (10:51 -0700)
commitc4a33d1cffceaa1faed1fe9db48e3bc3a7ecf864
tree6ce8a5f82f528935a3bf5024ff787f2ced0ecdeb
parent8b59d73f253958c5f148a3d0d1a4757b16f2f10c
For Tornado AsyncHTTPClient, replace the methods instead of the class.

This makes it so patching works even if the user has a reference to, or an
instance of the original unpatched AsyncHTTPClient class.

Fixes #183.
tests/integration/test_tornado.py
vcr/patch.py
vcr/stubs/tornado_stubs.py