Skip to content

Commit

Permalink
Merge pull request #295 from fabaff/patch-1
Browse files Browse the repository at this point in the history
Migrate to importlib
  • Loading branch information
dlyssenko authored Aug 3, 2024
2 parents 3b174e4 + 1f2d8e1 commit ca94e9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import sys
import os
import unittest
import imp
import importlib

sys.path.append(os.path.join(os.path.dirname(__file__), '../lib'))

Expand Down Expand Up @@ -227,7 +227,7 @@ class TestClient(unittest.TestCase):
def setUp(self):
if 'EAPI_CONF' in os.environ:
del os.environ['EAPI_CONF']
imp.reload(pyeapi.client)
importlib.reload(pyeapi.client)

def test_load_config_for_connection_with_filename(self):
conf = get_fixture('eapi.conf')
Expand Down

0 comments on commit ca94e9b

Please sign in to comment.