summaryrefslogtreecommitdiff
path: root/test/test_importhook.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_importhook.py')
-rw-r--r--test/test_importhook.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_importhook.py b/test/test_importhook.py
index 234fda4..7c2a02c 100644
--- a/test/test_importhook.py
+++ b/test/test_importhook.py
@@ -1,12 +1,12 @@
# -*- coding: utf-8 -*-
import unittest
import sys, os
-import imp
+from bottle import new_module
class TestImportHooks(unittest.TestCase):
def make_module(self, name, **args):
- mod = sys.modules.setdefault(name, imp.new_module(name))
+ mod = sys.modules.setdefault(name, new_module(name))
mod.__file__ = '<virtual %s>' % name
mod.__dict__.update(**args)
return mod