jenkins-bot submitted this change.
[tests] fix require_modules usage
https://doc.wikimedia.org/pywikibot/master/_modules/tests/aspects.html#require_modules
Change-Id: I2f524a3907247b1c1bd9cb7427bce3b6ed0dcee6
---
M tests/README.rst
M tests/gui_tests.py
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/tests/README.rst b/tests/README.rst
index e72ecd7..c4c8b9a 100644
--- a/tests/README.rst
+++ b/tests/README.rst
@@ -228,7 +228,7 @@
from tests.aspects import require_modules
[......]
- @require_modules(['important1', 'musthave2'])
+ @require_modules('important1', 'musthave2')
def test_require_modules(self):
@tests.aspects.require_version
diff --git a/tests/gui_tests.py b/tests/gui_tests.py
index 53044fa..428ba2e 100755
--- a/tests/gui_tests.py
+++ b/tests/gui_tests.py
@@ -55,8 +55,7 @@
self.assertIn('Main Page', text)
-@require_modules('tkinter')
-@require_modules('PIL')
+@require_modules('tkinter', 'PIL')
def setUpModule():
"""Skip tests if tkinter or PIL is not installed.
To view, visit change 1040776. To unsubscribe, or for help writing mail filters, visit settings.