Whym has uploaded a new change for review.
https://gerrit.wikimedia.org/r/293958
Change subject: tests/family_tests: test should pass when domain is
'localhost:4881'
......................................................................
tests/family_tests: test should pass when domain is 'localhost:4881'
Change-Id: Icda9ffc9f845deb0d0b0f284682a57d7b606e274
---
M tests/family_tests.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/58/293958/1
diff --git a/tests/family_tests.py b/tests/family_tests.py
index 440f249..1b536f1 100644
--- a/tests/family_tests.py
+++ b/tests/family_tests.py
@@ -43,7 +43,7 @@
self.assertTrue(iter(f.domains))
for domain in f.domains:
self.assertIsInstance(domain, basestring)
- if domain != 'localhost':
+ if domain.split(':', 1)[0] != 'localhost':
self.assertIn('.', domain)
self.assertEqual(f.name, name)
self.assertIsInstance(f.languages_by_size, list)
--
To view, visit https://gerrit.wikimedia.org/r/293958
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icda9ffc9f845deb0d0b0f284682a57d7b606e274
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Whym <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits