Page MenuHomePhabricator

Solve 16 warnings in tox:nose
Closed, ResolvedPublic

Description

Similar to T187009 there are few warnings in tox:nose and tox:nose34, which should be resolved as they suggest there is some issue with it.

  • 11× – WARNING: /usr/lib/python2.7/unittest/case.py:340: RuntimeWarning: TestResult has no addExpectedFailure method, reporting as passes
  • 9× – WARNING: /src/pywikibot/cosmetic_changes.py:185: ImportWarning: package stdnum.isbn not found; using scripts.isbn
  • 4× – WARNING: Test SingleSiteBot class with predefined site, Test SingleSiteBot class with no predefined site: Skipped [[wikipedia:en:Page 2]] due to: The bot is on site "wikipedia:de" but the page on site "wikipedia:en"
  • WARNING: /src/tests/site_tests.py:251: FamilyMaintenanceWarning: Site wikinews:en has no doc_subpages dict in wikinews_family.py file (T195338)

See e.g.: https://integration.wikimedia.org/ci/job/pywikibot-core-tox-fasttest-py35-docker/5951/console

Event Timeline

11× – WARNING: /usr/lib/python2.7/unittest/case.py:340: RuntimeWarning: TestResult has no addExpectedFailure method, reporting as passes

This one looks like an upstream issue in nose: https://github.com/nose-devs/nose/issues/33

Xqt triaged this task as Medium priority.Jun 11 2018, 3:17 PM
Vvjjkkii renamed this task from Solve 25 warnings in tox:nose to q3baaaaaaa.Jul 1 2018, 1:07 AM
Vvjjkkii raised the priority of this task from Medium to High.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.

Change 447480 had a related patch set uploaded (by Dalba; owner: dalba):
[pywikibot/core@master] isbn_tests.py: Suppresss stdnum stdnum.isbn ImportWarning

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

Change 447480 merged by jenkins-bot:
[pywikibot/core@master] isbn_tests.py: Suppress stdnum stdnum.isbn ImportWarning

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

Dalba renamed this task from Solve 25 warnings in tox:nose to Solve 16 warnings in tox:nose.Jul 24 2018, 2:55 AM
Dalba updated the task description. (Show Details)

Change 666642 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [tests] use pytests for jenkins instead of nose

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

Change 666642 merged by jenkins-bot:
[pywikibot/core@master] [tests] use pytests for jenkins instead of nose

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

Xqt claimed this task.