Page MenuHomePhabricator

nose2 fails to load Pywikibot tests
Open, LowestPublic

Description

As reported in https://github.com/nose-devs/nose2/issues/252

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/aspects.py", line 597, in setUpClass
    super(RequireUserMixin, cls).setUpClass()
  File ".../tests/aspects.py", line 562, in setUpClass
    % (cls.__name__, env_var))
SkipTest: 'TestSiteSysopWrite' write tests disabled. Set PYWIKIBOT2_TEST_WRITE=1 to enable.

https://github.com/wikimedia/pywikibot-core/blob/09dce8fe3b3041eccdc8dc8ede9857cda42a6d7c/tests/aspects.py#L559

Event Timeline

jayvdb created this task.Oct 13 2015, 1:43 AM
jayvdb updated the task description. (Show Details)
jayvdb raised the priority of this task from to Needs Triage.
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 on the Pywikibot-tests board.