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 <rep...@bugs.python.org>
<http://bugs.python.org/issue16510>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to