Skip to content

Commit

Permalink
Update test_program.py
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanoChiodino authored Oct 6, 2023
1 parent 3ae7a1a commit b83827a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testify/test_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ def load_plugins():
# Need some unlikely-to-clash unique-ish module name
mod_name = '_testify_plugin__' + mod_name

try:
SourceFileLoader(mod_name, full_file_path).load_module()
try:
module_type = SourceFileLoader(mod_name, full_file_path).load_module()
plugin_modules.append(module_type)
except TypeError:
continue
except ImportError as e:
Expand Down

0 comments on commit b83827a

Please sign in to comment.