testtools-dev team mailing list archive
-
testtools-dev team
-
Mailing list archive
-
Message #00623
[Bug 762008] [NEW] LessThan assertion error is inaccurate
Public bug reported:
If you do:
self.assertThat(5, LessThan(3))
You'll get an error that says:
Difference: 3 is >= 5
Which is not true. The standard way of expressing errors is to say
something that is true, but wrong.
** Affects: testtools
Importance: Critical
Assignee: Gavin Panella (allenap)
Status: Fix Committed
** Branch linked: lp:~allenap/testtools/lessthan-mismatch-string
** Changed in: testtools
Status: In Progress => Fix Committed
** Changed in: testtools
Milestone: None => 0.9.8
** Changed in: testtools
Milestone: 0.9.8 => next
--
You received this bug notification because you are a member of testtools
developers, which is subscribed to testtools.
https://bugs.launchpad.net/bugs/762008
Title:
LessThan assertion error is inaccurate
Status in testtools:
Fix Committed
Bug description:
If you do:
self.assertThat(5, LessThan(3))
You'll get an error that says:
Difference: 3 is >= 5
Which is not true. The standard way of expressing errors is to say
something that is true, but wrong.
Follow ups
References