[Python-ideas] PEP 485: A Function for testing approximate equality (original) (raw)
Andrew Barnert abarnert at yahoo.com
Thu Feb 5 23:49:11 CET 2015
- Previous message: [Python-ideas] PEP 485: A Function for testing approximate equality
- Next message: [Python-ideas] PEP 485: A Function for testing approximate equality
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thursday, February 5, 2015 11:47 AM, Chris Barker <chris.barker at noaa.gov> wrote:
- For unittests are you proposing to replace assertAlmostEquals or deprecate that and add a new assertIsCloseTo? (I hope the latter.
Add an assertIsCloseTo -- whether assertAlmostEquals should be deprecated I have no opinion on. Though it is useful, as it acts over a sequence -- I"m guessing fols will want to keep it.
Why not have assertIsCloseTo act over a sequence in exactly the same way as assertAlmostEquals, in which case there's no reason to keep the latter (except for existing unit tests that already use it, but presumably a long period of deprecation is sufficient there)?
- Previous message: [Python-ideas] PEP 485: A Function for testing approximate equality
- Next message: [Python-ideas] PEP 485: A Function for testing approximate equality
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]