diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-07-28 06:25:41 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-07-28 06:48:15 -0500 |
| commit | c0ddc54f2f5e3f453735780e639be08ef3b15e2d (patch) | |
| tree | e78fc7af443f0d7376ff9be23785b84ecadd2dc8 /tests | |
| parent | 47e3e65cc1734e46fd16ea11622e57b7978d3e0d (diff) | |
| download | flake8-bug/178.tar.gz | |
Match noqa for users with explanationsbug/178
This makes the regular expression a bit more complex, and potentially
slower, but it will fix the issue where users had noqa comments with
colons followed by explanations.
Closes #178
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unit/test_style_guide.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit/test_style_guide.py b/tests/unit/test_style_guide.py index 4efbca5..f5a2caa 100644 --- a/tests/unit/test_style_guide.py +++ b/tests/unit/test_style_guide.py @@ -130,6 +130,7 @@ def test_should_report_error(select_list, ignore_list, error_code, expected): ('E111', 'a = 1 # noqa, analysis:ignore', True), ('E111', 'a = 1 # noqa analysis:ignore', True), ('E111', 'a = 1 # noqa - We do not care', True), + ('E111', 'a = 1 # noqa: We do not care', True), ]) def test_is_inline_ignored(error_code, physical_line, expected_result): """Verify that we detect inline usage of ``# noqa``.""" |
