From 1c44f49d1b927fce9a3c4d3129e7bd85319fcd40 Mon Sep 17 00:00:00 2001 From: Bruno Binet Date: Fri, 23 Nov 2012 15:50:54 +0100 Subject: [PATCH] remove importlib dependency importlib is only available for python >= 2.7 --- tests/support.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/support.py b/tests/support.py index 52a410ff..5b63eeba 100644 --- a/tests/support.py +++ b/tests/support.py @@ -4,7 +4,6 @@ __all__ = [ ] import cStringIO -import importlib import os import re import subprocess @@ -145,7 +144,7 @@ def module_exists(module_name): """Test if a module is importable.""" try: - importlib.import_module(module_name) + __import__(module_name) except ImportError: return False else: