Merge lp:~jelmer/bzr-grep/feature-move into lp:bzr-grep

Proposed by Jelmer Vernooij
Status: Merged
Approved by: Martin Pool
Approved revision: 145
Merged at revision: 146
Proposed branch: lp:~jelmer/bzr-grep/feature-move
Merge into: lp:bzr-grep
Diff against target: 18 lines (+5/-1)
1 file modified
features.py (+5/-1)
To merge this branch: bzr merge lp:~jelmer/bzr-grep/feature-move
Reviewer Review Type Date Requested Status
Bazaar Developers Pending
Review via email: mp+71588@code.launchpad.net

This proposal supersedes a proposal from 2011-08-15.

Description of the change

Cope with the fact that Feature has moved to bzrlib.tests.features in bzr.dev.

To post a comment you must log in.
Revision history for this message
John A Meinel (jameinel) wrote : Posted in a previous version of this proposal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8/15/2011 7:04 PM, Jelmer Vernooij wrote:
> Jelmer Vernooij has proposed merging lp:~jelmer/bzr-grep/lazy into
> lp:bzr-grep.
>
> Requested reviews: Bazaar Developers (bzr)
>
> For more details, see:
> https://code.launchpad.net/~jelmer/bzr-grep/lazy/+merge/71587
>
> Cope with the fact that Feature has moved to bzrlib.tests.features in
> bzr.dev.

 merge: approve

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5KbJEACgkQJdeBCYSNAANewQCdF20d77YOLF4XxK97Q1HF6jvJ
0xAAnR4wTWkME57CR+jVZEV67fzeoZJt
=5IA0
-----END PGP SIGNATURE-----

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'features.py'
2--- features.py 2010-05-22 12:35:19 +0000
3+++ features.py 2011-08-15 17:05:07 +0000
4@@ -16,9 +16,13 @@
5 """'Features' which are used to skip tests."""
6
7 from bzrlib import tests
8+try:
9+ from bzrlib.tests.features import Feature
10+except ImportError: # bzr < 2.5
11+ from bzrlib.tests import Feature
12 from termcolor import allow_color
13
14-class _ColorFeature(tests.Feature):
15+class _ColorFeature(Feature):
16
17 def _probe(self):
18 return allow_color()

Subscribers

People subscribed via source and target branches