lists.wikimedia.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
List overview
Download
Pywikibot-commits
May 2016
----- 2024 -----
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
pywikibot-commits@lists.wikimedia.org
2 participants
98 discussions
Start a n
N
ew thread
[Gerrit] Retry after OAuth "Nonce already used" error - change (pywikibot/core)
by jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. Change subject: Retry after OAuth "Nonce already used" error ...................................................................... Retry after OAuth "Nonce already used" error Bug: T109173 Change-Id: Idebdcc4891fb6ed629ec24221eeaa7b4ee8eb84f --- M pywikibot/data/api.py 1 file changed, 5 insertions(+), 0 deletions(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py index 40999c6..62ec818 100644 --- a/pywikibot/data/api.py +++ b/pywikibot/data/api.py @@ -2165,6 +2165,11 @@ ', '.join('{0}: {1}'.format(*e) for e in user_tokens.items()))) if 'mwoauth-invalid-authorization' in code: + if 'Nonce already used' in info: + pywikibot.error( + 'Retrying failed OAuth authentication for {0}: {1}' + .format(self.site, info)) + continue raise NoUsername('Failed OAuth authentication for %s: %s' % (self.site, info)) # raise error -- To view, visit
https://gerrit.wikimedia.org/r/289582
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: Idebdcc4891fb6ed629ec24221eeaa7b4ee8eb84f Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot <>
7 years, 11 months
1
0
0
0
[Gerrit] [bugfix] Fix TypeError when coercing string with dict - change (pywikibot/core)
by jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. Change subject: [bugfix] Fix TypeError when coercing string with dict ...................................................................... [bugfix] Fix TypeError when coercing string with dict Bug: T135507 Change-Id: I75797e214bbc4e0fd2e38cf755227edf2ff7d080 --- M pywikibot/logentries.py 1 file changed, 2 insertions(+), 2 deletions(-) Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/logentries.py b/pywikibot/logentries.py index a12715d..05607b6 100644 --- a/pywikibot/logentries.py +++ b/pywikibot/logentries.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Objects representing Mediawiki log entries.""" # -# (C) Pywikibot team, 2007-2015 +# (C) Pywikibot team, 2007-2016 # # Distributed under the terms of the MIT license. # @@ -439,6 +439,6 @@ logtype = logdata['type'] return LogEntryFactory._getEntryClass(logtype)(logdata, self._site) except KeyError: - pywikibot.debug(u"API log entry received:\n" + logdata, + pywikibot.debug('API log entry received:\n{0}'.format(logdata), _logger) raise Error("Log entry has no 'type' key") -- To view, visit
https://gerrit.wikimedia.org/r/289212
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: I75797e214bbc4e0fd2e38cf755227edf2ff7d080 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com> Gerrit-Reviewer: jenkins-bot <>
7 years, 11 months
1
0
0
0
Failed: wikimedia/pywikibot-core#3454 (master - 8beb9df)
by Travis CI
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #3454 Status: Failed Duration: 3 minutes and 47 seconds Commit: 8beb9df (master) Author: Ben McIlwain (Cyde Weys) Message: Credit myself by real name Change-Id: I8ab11d3776e135ff1a433b61e57272c64056d80c View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/67eaa09e2b75...8beb9df6…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/131215620
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
7 years, 11 months
1
0
0
0
Errored: wikimedia/pywikibot-core#3454 (master - 8beb9df)
by Travis CI
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #3454 Status: Errored Duration: 1 hour, 7 minutes, and 40 seconds Commit: 8beb9df (master) Author: Ben McIlwain (Cyde Weys) Message: Credit myself by real name Change-Id: I8ab11d3776e135ff1a433b61e57272c64056d80c View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/67eaa09e2b75...8beb9df6…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/131215620
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
7 years, 11 months
1
0
0
0
[Gerrit] Credit myself by real name - change (pywikibot/core)
by jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. Change subject: Credit myself by real name ...................................................................... Credit myself by real name Change-Id: I8ab11d3776e135ff1a433b61e57272c64056d80c --- M CREDITS 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/CREDITS b/CREDITS index 6e8c618..15ab9c7 100644 --- a/CREDITS +++ b/CREDITS @@ -26,6 +26,7 @@ bananeweizen Bartosz Dziewoński bep +Ben McIlwain (CydeWeys) Benjamín Valero Espinosa Betacommand Bináris @@ -34,7 +35,6 @@ Bryan Tong Minh CodeCat Christian List -Cyde Weys dalba Dan Miachel O. Heggø Daniel Friesen -- To view, visit
https://gerrit.wikimedia.org/r/289419
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: I8ab11d3776e135ff1a433b61e57272c64056d80c Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Cyde <cydeweys(a)gmail.com> Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot <>
7 years, 11 months
1
0
0
0
Failed: wikimedia/pywikibot-core#3452 (master - 64fc87b)
by Travis CI
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #3452 Status: Failed Duration: 3 minutes and 36 seconds Commit: 64fc87b (master) Author: jenkins-bot Message: Merge "Remove item count output in page generators" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/ad4d335a43fe...64fc87b3…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/131068638
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
7 years, 11 months
1
0
0
0
Errored: wikimedia/pywikibot-core#3452 (master - 64fc87b)
by Travis CI
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #3452 Status: Errored Duration: 9 minutes and 0 seconds Commit: 64fc87b (master) Author: jenkins-bot Message: Merge "Remove item count output in page generators" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/ad4d335a43fe...64fc87b3…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/131068638
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
7 years, 11 months
1
0
0
0
Errored: wikimedia/pywikibot-core#3453 (master - 67eaa09)
by Travis CI
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #3453 Status: Errored Duration: 1 hour, 7 minutes, and 41 seconds Commit: 67eaa09 (master) Author: jenkins-bot Message: Merge "Use py.test for some Travis jobs with 300s timeout" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/64fc87b33f97...67eaa09e…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/131137618
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
7 years, 11 months
1
0
0
0
[Gerrit] Use py.test for some Travis jobs with 300s timeout - change (pywikibot/core)
by jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. Change subject: Use py.test for some Travis jobs with 300s timeout ...................................................................... Use py.test for some Travis jobs with 300s timeout Use pytest-runner to run tests using py.test and pytest-timeout to kill jobs which take too long. Use py.text except for SITE_ONLY=1 or PYSETUP_TEST_EXTRAS=1 Bug: T115313 Change-Id: Iae8a77918a3a4ce5a1dba731be6d47716b1c8d02 --- M .travis.yml M dev-requirements.txt M tests/README.rst M tests/script_tests.py M tests/weblib_tests.py M tox.ini 6 files changed, 48 insertions(+), 1 deletion(-) Approvals: John Vandenberg: Looks good to me, but someone else must approve Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/.travis.yml b/.travis.yml index 90cbacb..15d08b9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,7 +30,12 @@ # Instead install requests in the before_script step below. - if [[ "$PYSETUP_TEST_EXTRAS" != '1' ]]; then rm requirements.txt ; fi - - if [[ "$SITE_ONLY" == '1' ]]; then export USE_NOSE=1; fi + - if [[ "$SITE_ONLY" == '1' ]]; then + export USE_NOSE=1 ; + elif [[ "$PYSETUP_TEST_EXTRAS" != '1' ]]; then + export USE_PYTEST=1 ; + fi + - export GITHUB_USER=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 1` - mkdir ~/.python-eggs - chmod 700 ~/.python-eggs @@ -95,6 +100,9 @@ else python setup.py nosetests --tests tests --verbosity=2 --with-coverage --cover-package=. ; fi ; + elif [[ "$USE_PYTEST" == "1" ]]; then + pip install --upgrade pytest-runner pytest-cov pytest-timeout "pytest>=2.8.0" ; + python setup.py pytest --addopts="-vvv -s --timeout=300 --cov=." ; else coverage run setup.py test ; fi diff --git a/dev-requirements.txt b/dev-requirements.txt index d990436..65c3ee8 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -2,6 +2,14 @@ # unittest2==0.8.0 ; python_full_version < '2.7.3' +pytest +# These are used by only some Travis builds +# pytest-timeout needs >=2.8.0 +# pytest>=2.8.0 +# pytest-timeout +# pytest-runner +# pytest-cov + six nose diff --git a/tests/README.rst b/tests/README.rst index 9c80c36..fff848f 100644 --- a/tests/README.rst +++ b/tests/README.rst @@ -34,6 +34,10 @@ python setup.py nosetests --tests tests +:: + + pip install pytest-runner + python setup.py pytest Module unittest ~~~~~~~~~~~~~~~ @@ -48,6 +52,13 @@ :: nosetests -v + +pytest +~~~~~~ + +:: + + py.test tox ~~~ @@ -67,6 +78,7 @@ :: python -m unittest -v tests.api_tests tests.site_tests + python -m unittest -v tests.api_tests.TestParamInfo.test_init nose ~~~~ @@ -74,6 +86,15 @@ :: nosetests -v tests.api_tests tests.site_tests + python -m unittest -v tests.api_tests:TestParamInfo.test_init + +pytest +~~~~~~ + +:: + + py.test -s -v tests/api_tests.py tests/site_tests.py + py.test -s -v tests/api_tests.py::TestParamInfo::test_init pwb ~~~ @@ -82,6 +103,7 @@ python pwb.py tests/api_tests.py -v python pwb.py tests/site_tests.py -v + python pwb.py tests/api_tests.py -v TestParamInfo.test_init env ~~~ diff --git a/tests/script_tests.py b/tests/script_tests.py index 4fdd9ec..5837e98 100644 --- a/tests/script_tests.py +++ b/tests/script_tests.py @@ -363,6 +363,8 @@ # Disable test by default in nosetests if script_name in unrunnable_script_list: + # flag them as an expectedFailure due to py.test (T135594) + dct[test_name] = unittest.expectedFailure(dct[test_name]) dct[test_name].__test__ = False return super(TestScriptMeta, cls).__new__(cls, name, bases, dct) diff --git a/tests/weblib_tests.py b/tests/weblib_tests.py index 13c5a13..3ef7c70 100644 --- a/tests/weblib_tests.py +++ b/tests/weblib_tests.py @@ -77,6 +77,7 @@ self.assertOneDeprecation() return archivedversion + @unittest.expectedFailure # See T110640 def testWebCiteOlder(self): """Test WebCite for
https://google.com
as of January 2013.""" archivedversion = self._get_archive_url('
https://google.com
', '20130101') diff --git a/tox.ini b/tox.ini index 5d34c3a..040e501 100644 --- a/tox.ini +++ b/tox.ini @@ -152,3 +152,9 @@ [pep257] # see explanations above ignore = D105,D211 + +[pytest] +python_files=tests/*.py +# disable recursing into tests/pwb, as that prints the environment, +# exposing any secure variables in Travis. +norecursedirs=.git .svn .tox pwb -- To view, visit
https://gerrit.wikimedia.org/r/289385
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: Iae8a77918a3a4ce5a1dba731be6d47716b1c8d02 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com> Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot <>
7 years, 11 months
1
0
0
0
Errored: wikimedia/pywikibot-core#3452 (master - 64fc87b)
by Travis CI
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #3452 Status: Errored Duration: 38 minutes and 4 seconds Commit: 64fc87b (master) Author: jenkins-bot Message: Merge "Remove item count output in page generators" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/ad4d335a43fe...64fc87b3…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/131068638
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
7 years, 11 months
1
0
0
0
← Newer
1
2
3
4
5
6
7
8
9
10
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
Results per page:
10
25
50
100
200