subtests: can't show the diff window
Answered
There is no option to show the diff window If there are subtests in the test , e.g.
def test_1(self):
for i in ['a', 'b', 'c']:
with self.subTest(i=i):
self.assertEqual(i, 'c')
Please sign in to leave a comment.
Hi,
What is your PyCharm version? Please attach a screenshot showing the issue.
Kind regards,
Sergey
Hi Sergey,
PYCHARM 2018.2.4 professional edition, Build:#PY - 182.4505.26
Please find the screenshots below.. you will see that "View assertEquals Difference" option from the context menu is available only for
it is not available for:
Thanks.
We have filed a feature request about it to our issue tracker https://youtrack.jetbrains.com/issue/PY-32256, please vote for it and follow for future updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.
Kind regards,
Sergey