diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2011-04-28 14:13:08 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2011-04-28 14:13:08 +0200 |
commit | 240383e171768e53a1b27144a9e054ced4d8da10 (patch) | |
tree | 380a3938d30a9906c330f4bea8110a05086dfe27 /tests | |
parent | 66b33f62f880f4ed084aa2f5b8e6b1037c928154 (diff) | |
download | bzr-fastimport-240383e171768e53a1b27144a9e054ced4d8da10.tar.gz |
Use TestCase.assertPathExists if available (fix deprecation warning with bzr 2.4)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_commands.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 |