[Numpy-svn] [numpy/numpy] 34ac69: BUG: Catch DeprecationWarning in numpy/core/tests/...

GitHub noreply@github....
Sun Sep 1 10:07:13 CDT 2013


  Branch: refs/heads/maintenance/1.8.x
  Home:   https://github.com/numpy/numpy
  Commit: 34ac69f1050103a30fc0d2c2d9ac559e96710f1a
      https://github.com/numpy/numpy/commit/34ac69f1050103a30fc0d2c2d9ac559e96710f1a
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-09-01 (Sun, 01 Sep 2013)

  Changed paths:
    M numpy/core/tests/test_numeric.py

  Log Message:
  -----------
  BUG: Catch DeprecationWarning in numpy/core/tests/test_numeric.py.

TestCreationFuncs.check_function was spewing Deprecation warnings in
release mode. AFAICT, it did not raise errors during development because
it was buried by a TypeError. The Deprecation in question is at line
1141 in multiarray/conversion_utils.c. Hiding the deprecation should
be harmless here, but when the Deprecation is turned into an error
it will need to be caught in the test.


  Commit: ad6351fd831d7cd980c6f26caef550ae96735a15
      https://github.com/numpy/numpy/commit/ad6351fd831d7cd980c6f26caef550ae96735a15
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-09-01 (Sun, 01 Sep 2013)

  Changed paths:
    M numpy/core/tests/test_shape_base.py

  Log Message:
  -----------
  MAINT: Make Warning handling cleaner in test_concatenate_sloppy0.

The test in question is in numpy/core/tests/test_shape_base. The cleanup
consists of using warning.catch_warnings instead of setting and popping the
warnings filter.


  Commit: 38c0fd90bb21f0112f962d6b77a255a5a156b9b1
      https://github.com/numpy/numpy/commit/38c0fd90bb21f0112f962d6b77a255a5a156b9b1
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-09-01 (Sun, 01 Sep 2013)

  Changed paths:
    M numpy/lib/tests/test_function_base.py

  Log Message:
  -----------
  BUG: Make DeprecationWarning always raise error in test.

The test_fancy in numpy/lib/tests/test_function_base.py failed in
release because a DeprecationWarning was no longer raised, it had
become a warning.


  Commit: 86a6e6cc38f921428150c2dd73c0634fde45d387
      https://github.com/numpy/numpy/commit/86a6e6cc38f921428150c2dd73c0634fde45d387
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-09-01 (Sun, 01 Sep 2013)

  Changed paths:
    M numpy/core/tests/test_numeric.py
    M numpy/core/tests/test_shape_base.py
    M numpy/lib/tests/test_function_base.py

  Log Message:
  -----------
  Merge pull request #3670 from charris/backport-test-fixes

Backport test fixes


Compare: https://github.com/numpy/numpy/compare/44c6f15e7b6b...86a6e6cc38f9


More information about the Numpy-svn mailing list