aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/tests/otherbinding/module_reload_test.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-03 11:14:55 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-03 12:25:11 +0000
commite796600c9663a26ccf1929aca8336eb0cb23fe5d (patch)
treed59e8b19dc85aa28bb90c3764b16cb0357e3a4c6 /sources/shiboken2/tests/otherbinding/module_reload_test.py
parent4d918d73e94c2fea125107369a650dff99513e0c (diff)
Remove Python2 from shiboken tests
Task-number: PYSIDE-1339 Task-number: PYSIDE-904 Change-Id: I78f18430eecf37c6a66593ac3a725d92b5a6c061 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken2/tests/otherbinding/module_reload_test.py')
-rw-r--r--sources/shiboken2/tests/otherbinding/module_reload_test.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/sources/shiboken2/tests/otherbinding/module_reload_test.py b/sources/shiboken2/tests/otherbinding/module_reload_test.py
index 368425cd0..c63af188e 100644
--- a/sources/shiboken2/tests/otherbinding/module_reload_test.py
+++ b/sources/shiboken2/tests/otherbinding/module_reload_test.py
@@ -29,6 +29,7 @@
##
#############################################################################
+from importlib import reload
import os
import shutil
import sys
@@ -38,10 +39,6 @@ sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from shiboken_paths import init_paths
init_paths()
-from py3kcompat import IS_PY3K
-
-if IS_PY3K:
- from imp import reload
orig_path = os.path.join(os.path.dirname(__file__))
workdir = os.getcwd()