Message90921
I would like to ask as a feature request that "inf" be almost equal to
"inf".
I wrote a program with a timeline class that had a method to tell the
time of the last event registered into it such that some events would be
positioned at the infinite when they wouldn't occur. I did generic tests
that would receive any output from this method and compare to the
expected result through unittest.TestCase.assertAlmostEqual(). Notice,
though, that I couldn't just pick assertEqual() to do this job because
the time of the last event would be defined through a series of
calculations.
Despite that, I believe that everything which is equal to anything else
would definitely be almost equal too. Thus, it would be nice to check
for equality before checking for almost-equality to define whether two
objects are almost equal. |
|
Date |
User |
Action |
Args |
2009-07-25 12:56:53 | lucaspmelo | set | recipients:
+ lucaspmelo, eric.smith, michael.foord |
2009-07-25 12:56:53 | lucaspmelo | set | messageid: <1248526613.48.0.662450524709.issue6567@psf.upfronthosting.co.za> |
2009-07-25 12:56:51 | lucaspmelo | link | issue6567 messages |
2009-07-25 12:56:51 | lucaspmelo | create | |
|