~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 2875.1.1.

  • Committer: Vincent Ladeuil
  • Date: 2007-10-02 11:21:44 UTC
  • mfrom: (2817.5.1 scratch)
  • mto: (2885.2.2 trunk)
  • mto: This revision was merged to the branch mainline in revision 2887.
  • Revision ID: v.ladeuil+lp@free.fr-20071002112144-et1xbsdbof2y9urw
Fix #147986 by monitoring a safety .bzr directory.

* bzrlib/tests/test_selftest.py:
(TestTestCaseWithMemoryTransport.test_safety_net): Accompanying
test.

* bzrlib/tests/__init__.py:
(ExtendedTestResult): Old error, never detected before.
(TestCaseWithMemoryTransport._create_safety_net): New method
explicitely creating a safety net to protect higher .bzr
directories from being polluted by tests.
(TestCaseWithMemoryTransport._check_safety_net): New method
checking that a test did not modify the safety net and re-create a
virgin safety net if it has modified it.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: