[New-bugs-announce] [issue16510] Using appropriate checks in tests

Serhiy Storchaka report at bugs.python.org
Mon Nov 19 11:44:18 CET 2012

New submission from Serhiy Storchaka:

The proposed patch upgrades tests to use specialized checks added in 3.1 and 3.2 (assertIsNone(x) instead assertTrue(x is None), assertLess(a, b) instead assertTrue(a < b), etc).  This modern checks provide a more useful error message in case of a fail.

Replaced only those checks that are not related to the tested operators.  For example, assertTrue(a < b) preserved if the operator "<" is tested.

components: Tests
files: tests_asserts.patch
keywords: patch
messages: 175953
nosy: ezio.melotti, michael.foord, pitrou, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Using appropriate checks in tests
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file28041/tests_asserts.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list