juju/testing: suite-level Patch never gets restored
Bug #1308101 reported by
Roger Peppe
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
Medium
|
Unassigned |
Bug Description
If we call CleanupSuite.
never gets restored. This is unintuitive (I've found some examples
in the wild that assume it just works).
It should be straightforward to make it work:
- set a field, say suiteSetup, inside CleanupSuite.
- change TearDownTest to clear s.testStack after running callStack.
- in CleanupSuite.
set and testStack is non-empty, move suiteStack to testStack.
- in CleanupSuite.
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: tech-debt testing |
Changed in juju-core: | |
importance: | High → Medium |
To post a comment you must log in.
Think I may be misunderstanding the problem here.
It seems like the original value is correctly restored on test tear down. /github. com/juju/ testing/ pull/15
https:/