summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2019-02-27 20:05:59 +0200
committerAdam Johnson <me@adamj.eu>2019-02-27 20:07:17 +0200
commit7e10d9a95e34aa7c600f5100ba64e7710c2688f1 (patch)
treed5cd8d424cfa8471dedef5901dbecbfb6b83d873 /testsuite
parente71908e1ac65f05cd92b1c6a71ef118f4138b2d7 (diff)
downloadpep8-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')
-rw-r--r--testsuite/E22.py4
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