Xqt has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/341321 )
Change subject: [bugfix] long must be global ...................................................................... [bugfix] long must be global Bug: T159700 Change-Id: I3817ec85830569b59a39e3a7710846d34654f16d --- M tests/site_tests.py 1 file changed, 4 insertions(+), 5 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/21/341321/1 diff --git a/tests/site_tests.py b/tests/site_tests.py index f784dbc..c4f1675 100644 --- a/tests/site_tests.py +++ b/tests/site_tests.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Tests for the site module.""" # -# (C) Pywikibot team, 2008-2016 +# (C) Pywikibot team, 2008-2017 # # Distributed under the terms of the MIT license. # @@ -46,6 +46,9 @@ ) from tests.basepage_tests import BasePageLoadRevisionsCachingTestBase from tests.utils import allowed_failure, allowed_failure_if, entered_loop + +if not PY2: + long = int # Must be global: T159700 class TokenTestBase(TestCaseBase): @@ -1162,10 +1165,6 @@ def test_logpages(self): """Test the deprecated site.logpages() method.""" - # pyflakes fix for Python 3 - if not PY2: - long = int - le = list(self.site.logpages(number=10)) self.assertOneDeprecation() self.assertLessEqual(len(le), 10) -- To view, visit https://gerrit.wikimedia.org/r/341321 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3817ec85830569b59a39e3a7710846d34654f16d Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Xqt <i...@gno.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits