Pycharm unit test interactive debug command line doesn't work

前端 未结 4 1633
深忆病人
深忆病人 2020-12-03 04:24

When debugging unit tests (through the pycharm test runner), one can turn on the interactive command line, but (unlike when debugging regular scripts) the commands entered d

4条回答
  •  感动是毒
    2020-12-03 04:57

    Unittests usually cannot be used in combination with debuggers, unless you explicitly delcare them as to be debugged. For this, use the decorator "@unittest.debug".

    s. also https://docs.python.org/3/library/unittest.html#organizing-tests for more information on this topic.

提交回复
热议问题