Skip to content

Commit

Permalink
fixup! test: check get_version() with heterogeneous names
Browse files Browse the repository at this point in the history
Do not patch __package__ too early
  • Loading branch information
SnoopJ committed Feb 24, 2024
1 parent ebf8ba9 commit 3c7a335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/plugins/test_plugins_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ def test_entrypoint_plugin_get_version(plugin_tmpfile):
entry_point = importlib.metadata.EntryPoint(
'test_plugin', 'file_mod', 'sopel.plugins')
plugin = handlers.EntryPointPlugin(entry_point)
plugin.module.__package__ = "FAKEFAKEFAKE"
plugin.load()
plugin.module.__package__ = "FAKEFAKEFAKE"
plugin.get_version()
finally:
sys.path.remove(distrib_dir)

0 comments on commit 3c7a335

Please sign in to comment.