← Back to team overview

divmod-dev team mailing list archive

[Bug 848467] Re: Detect tautological asserts

 

** Changed in: pyflakes (Debian)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Divmod-
dev, which is the registrant for Pyflakes.
https://bugs.launchpad.net/bugs/848467

Title:
  Detect tautological asserts

Status in Pyflakes:
  New
Status in “pyflakes” package in Debian:
  Confirmed

Bug description:
  An assert of the form:

  assert (x, 'blahblah')

  is tautological, because a non-empty tuple always has a truth value of
  True. However, it is common to mistakenly construct an assert
  statement of this form when attempting to wrap it over multiple lines.
  Python 2.6+ already issues a SyntaxWarning about this, but it would be
  nice if Pyflakes detected it too.

To manage notifications about this bug go to:
https://bugs.launchpad.net/pyflakes/+bug/848467/+subscriptions


References