summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_commands.py5
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