FixtureResource never gets remade

Bug #1023423 reported by James Westby
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
testresources
Fix Released
Critical
Robert Collins

Bug Description

FixtureResource overrides isDirty to state that it is always dirty.

However, when the support code sees that, it will trigger a call to reset()

The default code for reset only does a reset if self._dirty is true.

This means that despite always being dirty the resource is never cleaned.

+ def _get_dirty(self):
+ return True
+
+ def _set_dirty(self, new_val):
+ pass
+
+ _dirty = property(_get_dirty, _set_dirty)

Causes the fixture to always be reset.

Thanks,

James

Revision history for this message
Robert Collins (lifeless) wrote :

Care to make a patch w/tests?

Changed in testresources:
status: New → Triaged
importance: Undecided → Critical
Changed in testresources:
assignee: nobody → Robert Collins (lifeless)
milestone: none → next
status: Triaged → Fix Committed
Changed in testresources:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.