This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lucaspmelo
Recipients eric.smith, lucaspmelo, michael.foord
Date 2009-07-25.12:56:51
SpamBayes Score 9.553784e-09
Marked as misclassified No
Message-id <1248526613.48.0.662450524709.issue6567@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-07-25 12:56:53lucaspmelosetrecipients: + lucaspmelo, eric.smith, michael.foord
2009-07-25 12:56:53lucaspmelosetmessageid: <1248526613.48.0.662450524709.issue6567@psf.upfronthosting.co.za>
2009-07-25 12:56:51lucaspmelolinkissue6567 messages
2009-07-25 12:56:51lucaspmelocreate