From 960792b2e5ffe999d1559fa27720ff482e165a9b Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Sun, 27 Dec 2020 14:49:12 +0100 Subject: [PATCH] [tests] fix module load test for python 3.6 and further --- tests/core/test_module.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/core/test_module.py b/tests/core/test_module.py index 68415b7..5383c8b 100644 --- a/tests/core/test_module.py +++ b/tests/core/test_module.py @@ -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():