[tests] fix module load test for python 3.6 and further

This commit is contained in:
tobi-wan-kenobi 2020-12-27 14:49:12 +01:00
parent 73b071edb0
commit 960792b2e5

View file

@ -55,7 +55,8 @@ def test_importerror(mocker):
module = core.module.load(module_name="test", config=config)
assert module.__class__.__name__ == "Error"
assert module.widget().full_text() == "test: some-error"
assert module.widget().full_text() == "test: some-error" or
module.widget().full_text() == "test: unable to load module"
def test_loadvalid_module():