diff options
Diffstat (limited to 'testsuite/common.py')
-rw-r--r-- | testsuite/common.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/common.py b/testsuite/common.py index 3aeeaf5f2..5d8157e55 100644 --- a/testsuite/common.py +++ b/testsuite/common.py @@ -284,3 +284,10 @@ class patchIf(object): # 10 args -- mocksignature has been removed args.pop(5) return _noop_patch(*args)(func) + + +try: + re_type = re._pattern_type +except AttributeError: + re_type = type(re.compile("")) + |