Message272970
> self.assertEqual(self.nroot(x**12, 12), float(x))
> AssertionError: 1.1866666666666665 != 1.1866666666666668
That looks like a case where the test should simply be weakened to an `assertAlmostEqual` with a suitable tolerance; there's no strong reason to expect that `nroot` will give a faithfully rounded result in this case or any other. |
|
Date |
User |
Action |
Args |
2016-08-17 17:18:16 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, vstinner, ned.deily, steven.daprano, cool-RR, python-dev, martin.panter, koobs |
2016-08-17 17:18:15 | mark.dickinson | set | messageid: <1471454295.97.0.0102323234385.issue27181@psf.upfronthosting.co.za> |
2016-08-17 17:18:15 | mark.dickinson | link | issue27181 messages |
2016-08-17 17:18:15 | mark.dickinson | create | |
|