Merge ~cjwatson/launchpad:refactor-zope-test-in-subprocess into launchpad:master
Proposed by
Colin Watson
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | 138cb5524f816c4405403598bdb9c13eca42a1e8 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad:refactor-zope-test-in-subprocess |
Merge into: | launchpad:master |
Diff against target: |
370 lines (+88/-77) 4 files modified
lib/lp/bugs/scripts/checkwatches/tests/test_core.py (+9/-6) lib/lp/services/job/tests/test_runner.py (+4/-3) lib/lp/testing/__init__.py (+44/-40) lib/lp/testing/tests/test_run_isolated_test.py (+31/-28) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ioana Lasc (community) | Approve | ||
Review via email: mp+387645@code.launchpad.net |
Commit message
Refactor ZopeTestInSubPr
Description of the change
In terms of the testtools API, lp.testing.
The layer's testSetUp and testTearDown methods are now called in the parent process rather than in the child. Layers are responsible for dealing with their own isolation, and none of Launchpad's layers need subprocess isolation; furthermore, running layer methods in child processes caused problems for some upcoming changes to DatabaseLayer.
To post a comment you must log in.