Subject: Use reload() from imp module From: Radostin Stoyanov rstoyanov1@gmail.com Wed Oct 11 12:35:56 2017 +0100 Date: Fri Oct 20 13:18:31 2017 -0400: Git: 44de92b772dcb264a75832a46d4cf85e21799316 In Python 3 the reload() function [1] has been moved in the imp module. [2] [1] https://docs.python.org/2/library/functions.html#reload [2] https://docs.python.org/3/library/importlib.html#importlib.reload diff --git a/tests/__init__.py b/tests/__init__.py index 19b5d3e9..bea21d85 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -28,7 +28,7 @@ os.environ["VIRTINST_TEST_URL_DIR"] = os.path.abspath( # pylint: disable=wrong-import-position from virtcli import cliconfig # This sets all the cli bits back to their defaults -reload(cliconfig) +imp.reload(cliconfig) from tests import utils