Coverage report broken by lambda function
Hi, I'm using coverage 3.5.2 in combination with nose to display coverage reports for my Django app. Recently I started using the code found at http://djangosnippets.org/snippets/873/ to easily make settings variables available in templates. Unfortunately, this appears to break the coverage reports with the error shown in coverageError.txt
I was able to fix the error with the attached patch. The first change fixes the actual error, and the change farther down the file removes a duplicate entry in the list of coverage units (there would be one for a function, and then an identical one for the function returning the lambda expression)
Let me know if you need any more details, and thanks for making coverage so awesome!