combine_details blows up when there are duplicate details
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python Fixtures |
Fix Released
|
Undecided
|
Jonathan Lange |
Bug Description
combine_details refers to advance_iterator, which is an unknown name. This means that whenever getDetails is called for duplicate details (say, a parent with 'traceback' and a child with 'traceback'), then combine_details will raise an error that looks like this:
=======
ERROR: fixtures.
-------
Traceback (most recent call last):
File "/home/
'foo-1': 'child-content',}, parent.
File "/home/
combine_
File "/home/
new_name = '%s-%d' % (name, advance_
NameError: global name 'advance_iterator' is not defined
I believe this to be a Critical bug.
Related branches
- python-fixtures committers: Pending requested
-
Diff: 38 lines (+16/-1)2 files modifiedlib/fixtures/fixture.py (+4/-1)
lib/fixtures/tests/test_fixture.py (+12/-0)
Changed in python-fixtures: | |
status: | New → Fix Released |
assignee: | nobody → Jonathan Lange (jml) |
milestone: | none → next |