Merge lp:~jelmer/bzrtools/fix-bzr.dev-compat into lp:bzrtools

Proposed by Jelmer Vernooij
Status: Merged
Merged at revision: 777
Proposed branch: lp:~jelmer/bzrtools/fix-bzr.dev-compat
Merge into: lp:bzrtools
Diff against target: 62 lines (+21/-4)
3 files modified
tests/blackbox.py (+11/-2)
tests/test_link_tree.py (+6/-1)
tests/upstream_import.py (+4/-1)
To merge this branch: bzr merge lp:~jelmer/bzrtools/fix-bzr.dev-compat
Reviewer Review Type Date Requested Status
Aaron Bentley Approve
Jonathan Riddell (community) Approve
Review via email: mp+73156@code.launchpad.net

Description of the change

Cope with HardlinkFeature having moved to bzrlib.tests.features in bzr.dev.

To post a comment you must log in.
778. By Jelmer Vernooij

Fix deprecation warnings.

Revision history for this message
Jonathan Riddell (jr) wrote :

all good

review: Approve
Revision history for this message
Aaron Bentley (abentley) wrote :

Merged. Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tests/blackbox.py'
--- tests/blackbox.py 2011-06-24 13:35:53 +0000
+++ tests/blackbox.py 2011-08-29 17:05:30 +0000
@@ -6,12 +6,21 @@
6from bzrlib.config import LocationConfig6from bzrlib.config import LocationConfig
7from bzrlib.transport import get_transport7from bzrlib.transport import get_transport
8from bzrlib.tests import (8from bzrlib.tests import (
9 HardlinkFeature,
10 ModuleAvailableFeature,
11 TestCaseWithTransport,9 TestCaseWithTransport,
12 )10 )
13from bzrlib.plugins.bzrtools import command11from bzrlib.plugins.bzrtools import command
1412
13try:
14 from bzrlib.tests.features import (
15 HardlinkFeature,
16 ModuleAvailableFeature,
17 )
18except ImportError: # bzr < 2.5
19 from bzrlib.tests import (
20 HardlinkFeature,
21 ModuleAvailableFeature,
22 )
23
1524
16LzmaFeature = ModuleAvailableFeature("lzma")25LzmaFeature = ModuleAvailableFeature("lzma")
1726
1827
=== modified file 'tests/test_link_tree.py'
--- tests/test_link_tree.py 2010-02-25 04:15:18 +0000
+++ tests/test_link_tree.py 2011-08-29 17:05:30 +0000
@@ -17,7 +17,12 @@
17import os17import os
1818
19from bzrlib.transform import TreeTransform19from bzrlib.transform import TreeTransform
20from bzrlib.tests import TestCaseWithTransport, HardlinkFeature20from bzrlib.tests import TestCaseWithTransport
21
22try:
23 from bzrlib.tests.features import HardlinkFeature
24except ImportError: # bzr < 2.5
25 from bzrlib.tests import HardlinkFeature
2126
22from bzrlib.plugins.bzrtools import command27from bzrlib.plugins.bzrtools import command
23from bzrlib.plugins.bzrtools.link_tree import link_tree28from bzrlib.plugins.bzrtools.link_tree import link_tree
2429
=== modified file 'tests/upstream_import.py'
--- tests/upstream_import.py 2011-07-13 19:35:00 +0000
+++ tests/upstream_import.py 2011-08-29 17:05:30 +0000
@@ -26,8 +26,11 @@
26from bzrlib.tests import (26from bzrlib.tests import (
27 TestCaseInTempDir,27 TestCaseInTempDir,
28 TestCaseWithTransport,28 TestCaseWithTransport,
29 UnicodeFilenameFeature,
30 )29 )
30try:
31 from bzrlib.tests.features import UnicodeFilenameFeature
32except ImportError: # bzr < 2.5
33 from bzrlib.tests import UnicodeFilenameFeature
3134
3235
33def import_tar_broken(tree, tar_input):36def import_tar_broken(tree, tar_input):

Subscribers

People subscribed via source and target branches