Mpaa has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/169220

Change subject: Improve comment in page_tests.testBasePageConstructor
......................................................................

Improve comment in page_tests.testBasePageConstructor

Comment in page_tests.testBasePageConstructor was misleading, now fixed.

Change-Id: Iaa3254f56c35dc8e10a4051f374c55e7c0f2a1d4
---
M tests/page_tests.py
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/20/169220/1

diff --git a/tests/page_tests.py b/tests/page_tests.py
index 98616e5..460f1e8 100644
--- a/tests/page_tests.py
+++ b/tests/page_tests.py
@@ -281,8 +281,8 @@
         site = self.get_site()
 
         # Should not raise an error as the constructor only requires
-        # the site parameter, with the title parameter defaulted to
-        # empty string
+        # the site parameter.
+        # Empty string or None as title raises error.
         page = pywikibot.page.BasePage(site)
         self.assertRaises(InvalidTitle, page.title)
         page = pywikibot.page.BasePage(site, title=u'')

-- 
To view, visit https://gerrit.wikimedia.org/r/169220
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaa3254f56c35dc8e10a4051f374c55e7c0f2a1d4
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mpaa <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to