diff options
author | Adam Johnson <me@adamj.eu> | 2019-02-27 20:05:59 +0200 |
---|---|---|
committer | Adam Johnson <me@adamj.eu> | 2019-02-27 20:07:17 +0200 |
commit | 7e10d9a95e34aa7c600f5100ba64e7710c2688f1 (patch) | |
tree | d5cd8d424cfa8471dedef5901dbecbfb6b83d873 /testsuite/E22.py | |
parent | e71908e1ac65f05cd92b1c6a71ef118f4138b2d7 (diff) | |
download | pep8-7e10d9a95e34aa7c600f5100ba64e7710c2688f1.tar.gz |
E225 Check for space around boolean operators
This was documented in the docstring for `missing_whitespace_around_operator` but not implemented, allowing e.g. `1and 0` to pass. Fixed by adding test case then modifying the check to search for the 'and' and 'or' operators as well.
Diffstat (limited to 'testsuite/E22.py')
-rw-r--r-- | testsuite/E22.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/E22.py b/testsuite/E22.py index ee9dc74..351e976 100644 --- a/testsuite/E22.py +++ b/testsuite/E22.py @@ -76,6 +76,10 @@ _1kB = _1MB>> 10 i=i+ 1 #: E225 E225 i=i +1 +#: E225 +i = 1and 1 +#: E225 +i = 1or 0 #: E225 E226 i=i+1 #: E225 E226 |