[New-bugs-announce] [issue9623] test_site.py has a couple of stray self.assertTrue calls that test for equality

Dave Malcolm report at bugs.python.org
Mon Aug 16 21:44:27 CEST 2010


New submission from Dave Malcolm <dmalcolm at redhat.com>:

test_site.py has a couple of assertions of the form

  self.assertTrue(len(foo), some number)

which appear to be incorrect, and should read:

  self.assertEqual(len(foo), some number)

or assertEquals (that file uses both methods).

r76047 fixed some of these, but a couple remain (introduced in r74526) in both 2.7 branch and py3k.  Patch attached (for 2.7 branch)

----------
components: Tests
keywords: easy, needs review, patch
messages: 114069
nosy: dmalcolm
priority: normal
severity: normal
stage: patch review
status: open
title: test_site.py has a couple of stray self.assertTrue calls that test for equality
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9623>
_______________________________________


More information about the New-bugs-announce mailing list