Rev 4861: Skip tests that needs a bzr source tree when there isn't one. in file:///home/vila/src/bzr/bugs/644855-test-isolation/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Thu Sep 23 14:53:10 BST 2010
At file:///home/vila/src/bzr/bugs/644855-test-isolation/
------------------------------------------------------------
revno: 4861
revision-id: v.ladeuil+lp at free.fr-20100923135255-klreg6r84zfnmqdi
parent: pqm at pqm.ubuntu.com-20100917205217-twwxe319wehq5fks
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 644855-test-isolation
timestamp: Thu 2010-09-23 15:52:55 +0200
message:
Skip tests that needs a bzr source tree when there isn't one.
-------------- next part --------------
=== modified file 'NEWS'
--- a/NEWS 2010-09-17 19:58:09 +0000
+++ b/NEWS 2010-09-23 13:52:55 +0000
@@ -19,6 +19,10 @@
Bug Fixes
*********
+* Skip tests that needs a bzr source tree when there isn't one. This is
+ needed to succesfully run the test suite for installed versions.
+ (Vincent Ladeuil, #644855).
+
Improvements
************
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py 2010-07-19 10:37:26 +0000
+++ b/bzrlib/tests/__init__.py 2010-09-23 13:52:55 +0000
@@ -970,7 +970,7 @@
try:
workingtree.WorkingTree.open(path)
except (errors.NotBranchError, errors.NoWorkingTree):
- return
+ raise TestSkipped('Needs a working tree of bzr sources')
finally:
self.enable_directory_isolation()
More information about the bazaar-commits
mailing list