John Vandenberg has uploaded a new change for review.

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

Change subject: Update archived google.com URL
......................................................................

Update archived google.com URL

web.archive.org previously returned /web/<date>/http://www.google.com/
as the archived URL for https://google.com
It is now returning /web/<date>/http://google.com/

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


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/73/291873/1

diff --git a/tests/weblib_tests.py b/tests/weblib_tests.py
index 7e82081..43e3b79 100644
--- a/tests/weblib_tests.py
+++ b/tests/weblib_tests.py
@@ -50,7 +50,7 @@
         parsed = urlparse(archivedversion)
         self.assertIn(parsed.scheme, [u'http', u'https'])
         self.assertEqual(parsed.netloc, u'web.archive.org')
-        self.assertTrue(parsed.path.strip('/').endswith('www.google.com'), 
parsed.path)
+        self.assertTrue(parsed.path.strip('/').endswith('google.com'), 
parsed.path)
 
     def testInternetArchiveOlder(self):
         """Test Internet Archive for https://google.com as of June 2006."""
@@ -58,7 +58,7 @@
         parsed = urlparse(archivedversion)
         self.assertIn(parsed.scheme, [u'http', u'https'])
         self.assertEqual(parsed.netloc, u'web.archive.org')
-        self.assertTrue(parsed.path.strip('/').endswith('www.google.com'), 
parsed.path)
+        self.assertTrue(parsed.path.strip('/').endswith('google.com'), 
parsed.path)
         self.assertIn('200606', parsed.path)
 
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia928748b650554e629531e04effab32d55cd08f6
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jay...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to