##// END OF EJS Templates
py3: use fsencode for vcr recording paths and strings for custom_patches args...
Ian Moody -
r42064:2bad8f92 default
parent child Browse files
Show More
@@ -128,7 +128,7 b' def vcrcommand(name, flags, spec, helpca'
128 128 fullflags = flags + _VCR_FLAGS
129 129 def decorate(fn):
130 130 def inner(*args, **kwargs):
131 cassette = kwargs.pop(r'test_vcr', None)
131 cassette = pycompat.fsdecode(kwargs.pop(r'test_vcr', None))
132 132 if cassette:
133 133 import hgdemandimport
134 134 with hgdemandimport.deactivated():
@@ -137,8 +137,9 b' def vcrcommand(name, flags, spec, helpca'
137 137 vcr = vcrmod.VCR(
138 138 serializer=r'json',
139 139 custom_patches=[
140 (urlmod, 'httpconnection', stubs.VCRHTTPConnection),
141 (urlmod, 'httpsconnection',
140 (urlmod, r'httpconnection',
141 stubs.VCRHTTPConnection),
142 (urlmod, r'httpsconnection',
142 143 stubs.VCRHTTPSConnection),
143 144 ])
144 145 with vcr.use_cassette(cassette):
General Comments 0
You need to be logged in to leave comments. Login now