diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-07-26 06:24:04 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-07-26 06:24:04 -0500 |
| commit | f82b5d62d0c4e48b95466bb259f3401aecf28de7 (patch) | |
| tree | a3a2be431b16e5719b5bbdacb6adee78e1fd9721 /tests/unit | |
| parent | 88d9213962d6023d4ad97b54d2c6d1300512b727 (diff) | |
| download | flake8-f82b5d62d0c4e48b95466bb259f3401aecf28de7.tar.gz | |
Update NOQA regular expression
This allows for other text after `# noqa`.
Related to #180
Diffstat (limited to 'tests/unit')
| -rw-r--r-- | tests/unit/test_style_guide.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/test_style_guide.py b/tests/unit/test_style_guide.py index 3d05528..a38c657 100644 --- a/tests/unit/test_style_guide.py +++ b/tests/unit/test_style_guide.py @@ -127,6 +127,9 @@ def test_should_report_error(select_list, ignore_list, error_code, expected): ('E111', 'a = 1 # noqa: E111,W123,F821', True), ('W123', 'a = 1 # noqa: E111,W123,F821', True), ('E111', 'a = 1 # noqa: E11,W123,F821', True), + ('E111', 'a = 1 # noqa, analysis:ignore', True), + ('E111', 'a = 1 # noqa analysis:ignore', 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``.""" |
