Xqt submitted this change.
[tests] N802 is skipped for setUpModule/tearDownModule by settings
Change-Id: I77f50ecbf6868ea87a4b6e419fdf6a1f88e16058
---
M tests/site_login_logout_tests.py
M tests/tk_tests.py
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/site_login_logout_tests.py b/tests/site_login_logout_tests.py
index bcf195a..e9c59af 100755
--- a/tests/site_login_logout_tests.py
+++ b/tests/site_login_logout_tests.py
@@ -79,7 +79,7 @@
self.assertFalse(raised)
-def setUpModule(): # noqa: N802
+def setUpModule():
"""Skip tests if PYWIKIBOT_LOGIN_LOGOUT variable is not set."""
if os.environ.get('PYWIKIBOT_LOGIN_LOGOUT', '0') != '1':
raise unittest.SkipTest('login/logout tests are disabled')
diff --git a/tests/tk_tests.py b/tests/tk_tests.py
index c35a998..a746cee 100755
--- a/tests/tk_tests.py
+++ b/tests/tk_tests.py
@@ -53,7 +53,7 @@
self.assertIsNone(v)
-def setUpModule(): # noqa: N802
+def setUpModule():
"""Skip Travis tests if PYWIKIBOT_TEST_GUI variable is not set."""
if os.environ.get('PYWIKIBOT_TEST_GUI', '0') != '1':
raise unittest.SkipTest('Tkinter tests are disabled on Travis-CI')
To view, visit change 802782. To unsubscribe, or for help writing mail filters, visit settings.