[issue40761] unittest.TestCase.asserTrue return True even if the expr is False
lee yummy
report at bugs.python.org
Sun May 24 23:02:45 EDT 2020
New submission from lee yummy <liymsysu at gmail.com>:
self.assertTrue(np.array_equal(x, y), "") # x.shape is [58, 139]
np.array_equal(x, y) is False, but `self.assertTrue(np.array_equal(x, y), "")` doesn't raise error.
----------
components: Tests
messages: 369843
nosy: lee yummy
priority: normal
severity: normal
status: open
title: unittest.TestCase.asserTrue return True even if the expr is False
type: behavior
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40761>
_______________________________________
More information about the Python-bugs-list
mailing list