Skip to content

Commit

Permalink
Update test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 authored Mar 7, 2024
1 parent 094bd26 commit a285664
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ def run_test_suite(directory, description="", verbose=True):
def _import_from_file(script):
# import imp was replaced due to python 3.12 dropping the module.
# this will be removed/changed when pytest is integrated.
from importlib.machinery import SourceFileLoader
return SourceFileLoader(script, os.path.basename(script))
# from importlib.machinery import SourceFileLoader
# return SourceFileLoader(script, os.path.basename(script))
pass


warning_re = re.compile("Parent module '[a-zA-Z0-9]+' not found while handling absolute import")
Expand Down

0 comments on commit a285664

Please sign in to comment.