summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2016-12-30 19:27:27 +0100
committerArmin Rigo <arigo@tunes.org>2016-12-30 19:27:27 +0100
commit60cae1236a51f8c86a1020a649f3db5a44078057 (patch)
tree31412dc9749254d576c4f91fedde71d32ecbd4f0 /testing
parent63921f7f6c9fe2c8911c6a30d4faacc6f917a4dd (diff)
downloadcffi-60cae1236a51f8c86a1020a649f3db5a44078057.tar.gz
Python 2.6 compat
Diffstat (limited to 'testing')
-rw-r--r--testing/cffi1/test_recompiler.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/testing/cffi1/test_recompiler.py b/testing/cffi1/test_recompiler.py
index 86ef645..5c54837 100644
--- a/testing/cffi1/test_recompiler.py
+++ b/testing/cffi1/test_recompiler.py
@@ -1,12 +1,16 @@
import sys, os, py
-import importlib
from cffi import FFI, VerificationError, FFIError
from cffi import recompiler
from testing.udir import udir
from testing.support import u, long
from testing.support import FdWriteCapture, StdErrCapture
+try:
+ import importlib
+except ImportError:
+ importlib = None
+
def check_type_table(input, expected_output, included=None):
ffi = FFI()