Skip to content

Commit

Permalink
Improve the message, and fix the test, for the selector lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
pelson committed Apr 19, 2016
1 parent f0aec82 commit d91885f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conda_smithy/lint_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def lintify(meta, recipe_dir=None):
bad_selectors.append(selector_line)
if bad_selectors:
lints.append('Selectors are suggested to take a '
'"<two spaces>#<one space>[<selector>]" form.')
'``<two spaces>#<one space>[<expression>]`` form.')

# 7: The build section should have a build number.
if build_section.get('number', None) is None:
Expand Down
2 changes: 1 addition & 1 deletion conda_smithy/tests/test_lint_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def test_test_section_with_recipe(self):

def test_selectors(self):
expected_message = ('Selectors are suggested to take a '
'" # [<selector>]" form.')
'``<two spaces>#<one space>[<expression>]`` form.')

with tmp_directory() as recipe_dir:
def assert_selector(selector, is_good=True):
Expand Down

0 comments on commit d91885f

Please sign in to comment.