tests/hghave.py
changeset 39648 e37a0fcd82c0
parent 39402 ecbab8be7470
child 39759 aeb2812f304d
--- a/tests/hghave.py	Sat Sep 15 00:04:06 2018 -0400
+++ b/tests/hghave.py	Sat Sep 15 00:18:16 2018 -0400
@@ -770,3 +770,13 @@
 @check('repofncache', 'repository has an fncache')
 def has_repofncache():
     return 'fncache' in getrepofeatures()
+
+@check('vcr', 'vcr http mocking library')
+def has_vcr():
+    try:
+        import vcr
+        vcr.VCR
+        return True
+    except (ImportError, AttributeError):
+        pass
+    return False