From 26c906478fc8cbb74929e929c822cd7e24de4e35 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Tue, 2 Oct 2012 11:55:49 -0400 Subject: testsuite: unit tests for Cfg plugin and base handlers --- testsuite/common.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'testsuite/common.py') 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("")) + -- cgit v1.2.3-1-g7c22