[Numpy-svn] [numpy/numpy] 03371c: BUG: Make DeprecationWarning always raise error in...

GitHub noreply@github....
Sun Sep 1 08:56:49 CDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 03371cdae281bbbde0c7adfc28d012d6555ad112
      https://github.com/numpy/numpy/commit/03371cdae281bbbde0c7adfc28d012d6555ad112
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-08-31 (Sat, 31 Aug 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: d4413a319ed90a99621bc105bc35a820f65dbf5d
      https://github.com/numpy/numpy/commit/d4413a319ed90a99621bc105bc35a820f65dbf5d
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-08-31 (Sat, 31 Aug 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: 57245e4570fa84f2e40a6fa1cc22716d279f8c00
      https://github.com/numpy/numpy/commit/57245e4570fa84f2e40a6fa1cc22716d279f8c00
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-08-31 (Sat, 31 Aug 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: d958dec676beeac218a118fac084fa8b14bc9171
      https://github.com/numpy/numpy/commit/d958dec676beeac218a118fac084fa8b14bc9171
  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 #3668 from charris/fix-buggy-tests

Fix buggy tests


Compare: https://github.com/numpy/numpy/compare/74b6b2cf151c...d958dec676be


More information about the Numpy-svn mailing list