jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1337406?usp=email )
Change subject: tests: Remove unused error message constants
......................................................................
tests: Remove unused error message constants
These warning and error patterns were left behind when their consuming
assertions were removed. Delete the four unused constants.
Change-Id: I03cc37267764539c7a8490e93e7da6528b2d66d8
---
M tests/basesite_tests.py
M tests/bot_tests.py
M tests/http_tests.py
3 files changed, 0 insertions(+), 7 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/basesite_tests.py b/tests/basesite_tests.py
index e414500..1d3e276 100755
--- a/tests/basesite_tests.py
+++ b/tests/basesite_tests.py
@@ -16,10 +16,6 @@
from tests.aspects import DefaultSiteTestCase, TestCase
-WARN_SELF_CALL = (r'Referencing this attribute like a function '
- r'is deprecated .+; use it directly instead')
-
-
class TestBaseSiteProperties(TestCase):
"""Test properties for BaseSite."""
diff --git a/tests/bot_tests.py b/tests/bot_tests.py
index a254a74..8c1048b 100755
--- a/tests/bot_tests.py
+++ b/tests/bot_tests.py
@@ -106,8 +106,6 @@
"""Tests for the BaseBot subclasses."""
- CANT_SET_ATTRIBUTE_RE = "can't set attribute"
- NOT_IN_TREAT_RE = 'Requesting the site not while in treat is not allowed.'
dry = True
sites = {
diff --git a/tests/http_tests.py b/tests/http_tests.py
index 208e3ba..8d821ce 100755
--- a/tests/http_tests.py
+++ b/tests/http_tests.py
@@ -290,7 +290,6 @@
"""Test that HttpRequest correctly handles the charsets given."""
- CODEC_CANT_DECODE_RE = "codec can't decode byte"
net = False
STR = 'äöü'
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1337406?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I03cc37267764539c7a8490e93e7da6528b2d66d8
Gerrit-Change-Number: 1337406
Gerrit-PatchSet: 2
Gerrit-Owner: Mahveotm <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]