Skip to content

Commit

Permalink
Minor tweak to Sphinx test
Browse files Browse the repository at this point in the history
  • Loading branch information
seanh committed Jul 7, 2014
1 parent f638f40 commit dd5dd30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckan/new_tests/test_coding_standards.py
Expand Up @@ -53,11 +53,13 @@ def test_building_the_docs():
]

# Remove the allowed warnings from the list of collected warnings.
# Be sure to only remove one warning for each allowed warning.
warnings_to_remove = []
for allowed_warning in allowed_warnings:
for warning in warnings:
if allowed_warning in warning:
warnings_to_remove.append(warning)
break
new_warnings = [warning for warning in warnings
if warning not in warnings_to_remove]

Expand Down

0 comments on commit dd5dd30

Please sign in to comment.