summaryrefslogtreecommitdiff
path: root/tests/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/__init__.py')
-rw-r--r--tests/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
index c013fc3..8db9140 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -19,7 +19,10 @@
from bzrlib import errors as bzr_errors
from bzrlib.tests import TestLoader
-from bzrlib.tests.features import Feature
+try:
+ from bzrlib.tests.features import Feature
+except ImportError: # bzr < 2.5
+ from bzrlib.tests import Feature
from bzrlib.plugins.fastimport import load_fastimport