Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1268238?usp=email )
Change subject: tests: Increase maxlag parameter for doctest
......................................................................
tests: Increase maxlag parameter for doctest
doctests aren't able to skip the test when the test fails with
MaxlagTimeoutError. Therefore use a higher maxlag here. Otherwise
CI tests will fail and no patches are able to be committed.
Bug: T422266
Change-Id: Ic30644dbe10c60048cbe1716e9f5f7c8b8dae36a
---
M tox.ini
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
Xqt: Verified; Looks good to me, approved
jenkins-bot: Verified
diff --git a/tox.ini b/tox.ini
index 503ea9b..42de004 100644
--- a/tox.ini
+++ b/tox.ini
@@ -12,6 +12,7 @@
generate_user_files = -W error::UserWarning -m pwb generate_user_files
-site:wikipedia:test -v
# ignores: gui.py (needs tkinter), memento.py (has too many timeouts)
DOCTEST_IGNORES = --ignore-glob=*gui.py --ignore-glob=*memento.py
+MAXLAG = -c "with open('user-config.py','a') as f: f.write('\nmaxlag = 90\n')"
[testenv]
basepython =
@@ -96,6 +97,7 @@
basepython = python3.9
commands =
python {[params]generate_user_files}
+ python {[params]MAXLAG}
python -m pytest pywikibot --doctest-modules {[params]DOCTEST_IGNORES}
deps = {[doctest]deps}
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1268238?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ic30644dbe10c60048cbe1716e9f5f7c8b8dae36a
Gerrit-Change-Number: 1268238
Gerrit-PatchSet: 4
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]