~bzr/bzr-grep/ppa-daily

« back to all changes in this revision

Viewing changes to test_grep.py

  • Committer: Parth Malwankar
  • Date: 2010-05-22 12:35:19 UTC
  • mto: This revision was merged to the branch mainline in revision 129.
  • Revision ID: parth.malwankar@gmail.com-20100522123519-fwmz470pda4n4oj7
added feature for running color tests conditionally

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
import re
19
19
import unicodedata as ud
20
20
 
 
21
import features
21
22
from termcolor import color_string, FG
 
23
 
22
24
from bzrlib import tests, osutils
23
25
 
24
26
# NOTE: As bzr-grep optimizes PATTERN search to -F/--fixed-string
1915
1917
 
1916
1918
class TestColorGrep(GrepTestBase):
1917
1919
    """Tests for the --color option."""
 
1920
 
 
1921
    _test_needs_features = [features.color_feature]
 
1922
 
1918
1923
    _rev_sep = color_string('~', fg=FG.BOLD_YELLOW)
1919
1924
    _sep = color_string(':', fg=FG.BOLD_CYAN)
1920
1925