[Numpy-svn] [numpy/numpy] a16f38: FIX: loosen numerical tolerance in test_pareto()

GitHub noreply@github....
Tue Sep 11 13:06:12 CDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: a16f387350c9524c45ca36ff26dbb2c431d9dc41
      https://github.com/numpy/numpy/commit/a16f387350c9524c45ca36ff26dbb2c431d9dc41
  Author: Nathaniel J. Smith <njs@pobox.com>
  Date:   2012-09-07 (Fri, 07 Sep 2012)

  Changed paths:
    M numpy/random/tests/test_random.py

  Log Message:
  -----------
  FIX: loosen numerical tolerance in test_pareto()

The problem was that in 32bit Ubuntu 12.04, one gets the following:

>
/home/njs/numpy/.tox/py27/local/lib/python2.7/site-packages/numpy/random/tests/test_random.py(363)test_pareto()
-> np.testing.assert_array_almost_equal(actual, desired, decimal=15)
(Pdb) actual[1, 0]
52828779.702948704
(Pdb) desired[1, 0]
52828779.702948518

and the test was comparing the numbers to 1e-14, which obviously
failed.

Fixes #424.


  Commit: 6315567d69fd58e607ef1c75f2a9cbeb0b451dd7
      https://github.com/numpy/numpy/commit/6315567d69fd58e607ef1c75f2a9cbeb0b451dd7
  Author: njsmith <njs@pobox.com>
  Date:   2012-09-11 (Tue, 11 Sep 2012)

  Changed paths:
    M numpy/random/tests/test_random.py

  Log Message:
  -----------
  Merge pull request #430 from njsmith/test_pareto-fix

FIX: loosen numerical tolerance in test_pareto()


Compare: https://github.com/numpy/numpy/compare/a744f3cd24d2...6315567d69fd


More information about the Numpy-svn mailing list