From 240383e171768e53a1b27144a9e054ced4d8da10 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 28 Apr 2011 14:13:08 +0200 Subject: Use TestCase.assertPathExists if available (fix deprecation warning with bzr 2.4) --- tests/test_commands.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_commands.py b/tests/test_commands.py index 231b141..67c47d0 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -76,7 +76,10 @@ class TestFastExport(ExternalBase): tree.commit("pointless") data = self.run_bzr("fast-export br br.fi")[0] self.assertEquals("", data) - self.failUnlessExists("br.fi") + try: + self.assertPathExists("br.fi") + except AttributeError: # bzr < 2.4 + self.failUnlessExists("br.fi") simple_fast_import_stream = """commit refs/heads/master -- cgit v1.2.1