Skip to content

Commit

Permalink
Update test to cover removal of 'imp' from Py3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
luciansmith committed Jan 31, 2024
1 parent 35eb206 commit cd109e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tellurium/tests/test_examples.py
Expand Up @@ -6,8 +6,8 @@
import unittest

import os
import imp
from tellurium.tests.helpers import filesInDirectory
from importlib.machinery import SourceFileLoader

# ----------------------------------------------------------------
# List of python files to test
Expand Down Expand Up @@ -44,7 +44,7 @@ def test(self=None):
""" Test failes if Exception in execution of f. """
if self is not None:
print(filePath)
imp.load_source(os.path.basename(filePath)[:-3], filePath)
SourceFileLoader(os.path.basename(filePath)[:-3], filePath).load_module()
return test


Expand Down

0 comments on commit cd109e2

Please sign in to comment.