Issue 9597

Title
Can not run tests
Priority
bug
Status
resolved
Nosy list
josesalvador, reviewbot, roundup-bot
Assigned to
josesalvador
Keywords
review

Created on 2020-09-14.17:37:34 by josesalvador, last changed 1 month ago by roundup-bot.

Messages

New changeset 25d2d99506e4 by Cédric Krier in branch 'default':
Disable explicitly CRITICAL logging level in test
https://hg.tryton.org/tryton-env/rev/25d2d99506e4
New changeset 4f442059d0ab by José Salvador in branch 'default':
Disable explicitly CRITICAL logging level in test
https://hg.tryton.org/trytond/rev/4f442059d0ab
Author: [hidden] (josesalvador)
Date: 2020-09-14.17:37:33
It is not possible running tests as following docs instructions [1]. Command breaks with the follow traceback:

DB_CACHE=~/tryton/db_cache/default python -m trytond.tests.run-tests -m account_es
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/josesalvador/hg/hg.tryton.org/tryton-env/trytond/trytond/tests/run-tests.py", line 17, in <module>
    logging.disable()
TypeError: disable() missing 1 required positional argument: 'level'

It seems an error introduced by [2] because *disable.logging* expects a positional parameter [3]

[1] https://docs.tryton.org/projects/server/en/latest/topics/testing.html#running-your-module-s-tests
[2] https://hg.tryton.org/trytond/rev/8a292d374daf
[3] https://docs.python.org/3/library/logging.html?highlight=logging#logging.disable
History
Date User Action Args
2020-09-16 22:55:06roundup-botsetmessages: + msg60161
2020-09-16 22:55:01roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg60160
2020-09-15 17:20:57reviewbotsetmessages: + msg60135
2020-09-15 17:04:55josesalvadorsetstatus: in-progress -> testing
2020-09-15 16:59:00josesalvadorsetstatus: testing -> in-progress
2020-09-14 19:46:08reviewbotsetnosy: + reviewbot
messages: + msg60121
2020-09-14 19:23:31josesalvadorsetstatus: in-progress -> testing
reviews: 326091002
keyword: + review
2020-09-14 19:14:58josesalvadorsetstatus: unread -> in-progress
assignedto: josesalvador
2020-09-14 17:37:34josesalvadorcreate

Showing 10 items. Show all history (warning: this could be VERY long)