Opened 15 years ago
Last modified 13 years ago
#537 new defect
python:coverage incorrectly crashes when coverage report contains duplicate filenames.
Reported by: | Jonas Jonsson <fatbrain@…> | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 0.6.1 |
Component: | Build slave | Version: | 0.6b2 |
Keywords: | Cc: | lee@… | |
Operating System: | Linux |
Description
When I unittest my Django web-app (v1.1.1) using setuptools ./setup.py script (with the bitten friendly XmlTestRunner). I run into an error that the coverage-report.txt contains duplicate entries of the django settings.py filename.
The only difference in the entries is that one of the entires report settings.py being part of 'djangoproject.settings' module and in the second entry being part of 'settings' module.
# coverage-report.txt
djangoproject.settings 26 26 100% /.../djangoproject/settings.py settings 26 26 100% /.../djangoproject/settings.py
# error-message when running bitten-slave (<python:coverage ... />)
missing_files.remove(filename) ValueError: list.remove(x): x not in the list
When it tries to remove the djangoproject/settings.py file the missing_files list the second time.
Just had this error too.