0

The pytest-pycharm package is suppose to allow PyCharm to drop into a debug exception breakpoint on a test failure (as noted here). This has worked successfully in the past. However, in PyCharm 2019.2 (possibly earlier) it seems to no longer be working (the test simply fails and outputs the failure to the console).

I'm not sure if this is due to the new PyCharm version or the package versions (or something specific in my setup). What might be a solution to this problem?

pytest version 5.0.1, pytest-pycharm version 0.5.0. pytest-cov is not installed, and adding --no-cov fails as an unexpected argument (this has been a solution for somewhat similar problems).

Shiania White
  • 345
  • 6
  • 16

1 Answers1

2

pytest-pycharm not working with PyCharm 2019.2 is a known issue – Incompatibility with PyCharm 2019.2. In the console output you should see the following error

INTERNALERROR> AttributeError: 'PyDB' object has no attribute 'handle_post_mortem_stop'

This issue was fixed in version 0.6.0.

Piotr Dobrogost
  • 41,292
  • 40
  • 236
  • 366