Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/802782 )

Change subject: [tests] N802 is skipped for setUpModule/tearDownModule by 
settings
......................................................................

[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(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Looks good to me, approved



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 https://gerrit.wikimedia.org/r/c/pywikibot/core/+/802782
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I77f50ecbf6868ea87a4b6e419fdf6a1f88e16058
Gerrit-Change-Number: 802782
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to