django_coverage_plugin icon indicating copy to clipboard operation
django_coverage_plugin copied to clipboard

Use the lineno attribute of TextNode.token if TextNode.position is unavailable

Open TaylorSMarks opened this issue 3 years ago • 0 comments
trafficstars

This fixed an issue I had in one of my files. I have no idea whether the TextNode was lacking a position because of a bug within Django or in my code, or if this was to be expected and Django_Coverage_Plugin needs to handle this.

I don't have a test case that I can publicly share, but I can say that without my change, it wasn't properly seeing that the file was being used, and with this change, it worked fine.

TaylorSMarks avatar Apr 08 '22 17:04 TaylorSMarks