Edgewall Software
Modify

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.

source://trunk/bitten/build/pythontools.py#L222

Attachments (0)

Change History (1)

comment:1 Changed 13 years ago by Lee Begg <lee@…>

  • Cc lee@… added

Just had this error too.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.