[Python-apps-team] Bug#641316: pyflakes: please detect assertions that are always true

Jakub Wilk jwilk at debian.org
Mon Sep 12 15:38:22 UTC 2011


Package: pyflakes
Version: 0.5.0-1
Severity: wishlist

It'd nice if pyflakes emitted a warning on code like this:

     assert(not n, "n should return False. i.e. I would expect same behavior as testing an empty list or string")

(Not the spurious parentheses.)

-- 
Jakub Wilk





More information about the Python-apps-team mailing list