Use new KnownFailure exception.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 26 Sep 2007 11:58:02 +0000 (13:58 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 26 Sep 2007 11:58:02 +0000 (13:58 +0200)
tests/test_workingtree.py

index a91d0d92586c3374efe34626925d10cd1d62c475..79c0218952fdca19f04af2e00ffee42abba5a1d4 100644 (file)
@@ -19,6 +19,7 @@
 from bzrlib.bzrdir import BzrDir
 from bzrlib.errors import NoSuchFile
 from bzrlib.inventory import Inventory
+from bzrlib.tests import KnownFailure
 from bzrlib.trace import mutter
 from bzrlib.workingtree import WorkingTree
 
@@ -247,7 +248,7 @@ class TestWorkingTree(TestCaseWithSubversionRepository):
         self.assertTrue(tree.is_control_filename(".svn"))
         self.assertFalse(tree.is_control_filename(".bzr"))
 
-    def notest_revert(self):
+    def test_revert(self):
         self.make_client('a', 'dc')
         self.build_tree({"dc/bl": "data"})
         self.client_add("dc/bl")
@@ -255,6 +256,7 @@ class TestWorkingTree(TestCaseWithSubversionRepository):
         self.client_update("dc")
         tree = WorkingTree.open("dc")
         os.remove("dc/bl")
+        raise KnownFailure("revert not supported yet")
         tree.revert(["bl"])
         self.assertEqual("data", open('dc/bl').read())