Skip to content

Commit 36cee30

Browse files
committed
RF: update code to remove deprecated imp module
imp module deprecated as of Python 3.4
1 parent 532cc34 commit 36cee30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nisext/tests/test_sexts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"""
33

44
import sys
5-
import imp
5+
import types
66

77
from ..sexts import package_check
88

99
from nose.tools import assert_true, assert_false, assert_equal, assert_raises
1010

1111
FAKE_NAME = 'nisext_improbable'
1212
assert FAKE_NAME not in sys.modules
13-
FAKE_MODULE = imp.new_module('nisext_fake')
13+
FAKE_MODULE = types.ModuleType('nisext_fake')
1414

1515

1616
def test_package_check():

0 commit comments

Comments
 (0)