You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Within
setUp
and test methodsraise unittest.SkipTest
works well.When a
setUpClass
has araise unittest.SkipTest
, the following error occurs instead of a skip:https://github.com/wikimedia/pywikibot-core/blob/09dce8fe3b3041eccdc8dc8ede9857cda42a6d7c/tests/aspects.py#L559
The text was updated successfully, but these errors were encountered: