Page MenuHomePhabricator

nose2 fails to load Pywikibot tests
Closed, ResolvedPublic


As reported in

Within setUp and test methods raise unittest.SkipTest works well.
When a setUpClass has a raise unittest.SkipTest, the following error occurs instead of a skip:

ERROR: _ErrorHolder
Traceback (most recent call last):
  File ".../tests/", line 597, in setUpClass
    super(RequireUserMixin, cls).setUpClass()
  File ".../tests/", line 562, in setUpClass
    % (cls.__name__, env_var))
SkipTest: 'TestSiteSysopWrite' write tests disabled. Set PYWIKIBOT2_TEST_WRITE=1 to enable.

Event Timeline

jayvdb created this task.Oct 13 2015, 1:43 AM
jayvdb raised the priority of this task from to Needs Triage.
jayvdb updated the task description. (Show Details)
jayvdb added projects: Pywikibot-tests, Upstream.
jayvdb added a subscriber: jayvdb.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald TranscriptOct 13 2015, 1:43 AM
jayvdb moved this task from Backlog to Reported Upstream on the Upstream board.Oct 13 2015, 1:44 AM
Dalba triaged this task as Lowest priority.Dec 24 2017, 4:27 AM
Dalba moved this task from Backlog to Upstream issues on the Pywikibot-tests board.
Xqt closed this task as Resolved.Sep 24 2019, 10:43 PM
Xqt claimed this task.
Xqt added a subscriber: Xqt.

Seems to be solved already