jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1040704?usp=email )
Change subject: [cleanup] Remove setting __test__ to script test ......................................................................
[cleanup] Remove setting __test__ to script test
unrunnable tests aren't collected.
Change-Id: Ia9c1412fa09170caab4eeb1e187afb6327f85dd7 --- M tests/script_tests.py 1 file changed, 0 insertions(+), 6 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/script_tests.py b/tests/script_tests.py index 9f9df0a..0cc3e0d 100755 --- a/tests/script_tests.py +++ b/tests/script_tests.py @@ -319,12 +319,6 @@ f'{script_name} has dependencies; skipping' )(dct[test_name])
- # Disable test by default in pytest - if script_name in unrunnable_script_set: - # 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().__new__(cls, name, bases, dct)
pywikibot-commits@lists.wikimedia.org