class MyTestCase(TestCase):
def test_something(self):
a = []
print(a[0])
result
Failure: builtins.tuple: (<class 'twisted.python.reflect.ObjectNotFound'>, ObjectNotFound("'fooo_test.py' does not name an object"), <traceback object at 0x000001FF515A2488>)
result
see https://youtrack.jetbrains.com/issue/PY-39336