Rev 5652: Remove abusive deprecation decorators.Also remove the corresponding test. in file:///home/vila/src/bzr/bugs/794960-wrong-deprecations/

Vincent Ladeuil v.ladeuil+lp at free.fr
Thu Jun 9 12:28:33 UTC 2011


At file:///home/vila/src/bzr/bugs/794960-wrong-deprecations/

------------------------------------------------------------
revno: 5652
revision-id: v.ladeuil+lp at free.fr-20110609122832-ovqtzt33m7r9ufdg
parent: v.ladeuil+lp at free.fr-20110609121709-op21oynar7h0f60t
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 794960-wrong-deprecations
timestamp: Thu 2011-06-09 14:28:32 +0200
message:
  Remove abusive deprecation decorators.Also remove the corresponding test.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_selftest.py'
--- a/bzrlib/tests/test_selftest.py	2011-05-13 11:34:44 +0000
+++ b/bzrlib/tests/test_selftest.py	2011-06-09 12:28:32 +0000
@@ -512,19 +512,6 @@
         self.assertRaises(AssertionError, self.assertEqualStat,
             os.lstat("foo"), os.lstat("longname"))
 
-    def test_failUnlessExists(self):
-        """Deprecated failUnlessExists and failIfExists"""
-        self.applyDeprecated(
-            deprecated_in((2, 4)),
-            self.failUnlessExists, '.')
-        self.build_tree(['foo/', 'foo/bar'])
-        self.applyDeprecated(
-            deprecated_in((2, 4)),
-            self.failUnlessExists, 'foo/bar')
-        self.applyDeprecated(
-            deprecated_in((2, 4)),
-            self.failIfExists, 'foo/foo')
-
     def test_assertPathExists(self):
         self.assertPathExists('.')
         self.build_tree(['foo/', 'foo/bar'])



More information about the bazaar-commits mailing list