[Patches] [ python-Patches-885008 ] Erroneous error message in
test_types
SourceForge.net
noreply at sourceforge.net
Fri Feb 6 13:38:23 EST 2004
Patches item #885008, was opened at 2004-01-26 21:11
Message generated for change (Comment added) made by doerwalter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=885008&group_id=5470
Category: Tests
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Gerrit Holl (gerrit)
Assigned to: Nobody/Anonymous (nobody)
Summary: Erroneous error message in test_types
Initial Comment:
test_types.py states:
if 1 and 1: pass
else: raise TestFailed, '1 and 1 is false instead of false'
I think this should be:
if 1 and 1: pass
else: raise TestFailed, '1 and 1 is false instead of true'
This patch changes this.
(BTW, shouldn't "if True:" and "if False:" also be
here? I didn't add it to the patch, because I'm not
sure and it's no work to add, so just notifying should
be enough if the should be there)
----------------------------------------------------------------------
>Comment By: Walter Dörwald (doerwalter)
Date: 2004-02-06 19:38
Message:
Logged In: YES
user_id=89016
Checked in as:
Lib/test/test_types.py 1.57 and 1.55.8.1
Note that test_types.py will be rewritten anyway as a PyUnit
test, s. The "if True:" and "if False:" tests might be part
of test_bool.py already.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=885008&group_id=5470
More information about the Patches
mailing list