[Python-modules-commits] r34454 - in packages/pyfits/trunk/debian (3 files)

aurel32 at users.alioth.debian.org aurel32 at users.alioth.debian.org
Sat Oct 3 08:25:41 UTC 2015


    Date: Saturday, October 3, 2015 @ 08:25:39
  Author: aurel32
Revision: 34454

Add patches/03-testsuite-ignore-deprecated.diff to not trigger
warnings when testing deprecated functions.

Added:
  packages/pyfits/trunk/debian/patches/03-testsuite-ignore-deprecated.diff
Modified:
  packages/pyfits/trunk/debian/changelog
  packages/pyfits/trunk/debian/patches/series

Modified: packages/pyfits/trunk/debian/changelog
===================================================================
--- packages/pyfits/trunk/debian/changelog	2015-10-02 19:11:58 UTC (rev 34453)
+++ packages/pyfits/trunk/debian/changelog	2015-10-03 08:25:39 UTC (rev 34454)
@@ -1,10 +1,17 @@
-pyfits (1:3.3-4) UNRELEASED; urgency=medium
+pyfits (1:3.3-5) UNRELEASED; urgency=medium
 
+  * Add patches/03-testsuite-ignore-deprecated.diff to not trigger
+    warnings when testing deprecated functions.
+
+ -- Aurelien Jarno <aurel32 at debian.org>  Sat, 03 Oct 2015 10:22:20 +0200
+
+pyfits (1:3.3-4) unstable; urgency=medium
+
   * Replace pyfits-utils by a transitional package depending on
     astropy-utils. Closes: #782817.
   * Drop the fitscheck transitional package.
 
- -- Aurelien Jarno <aurel32 at debian.org>  Sat, 27 Jun 2015 17:23:20 +0200
+ -- Aurelien Jarno <aurel32 at debian.org>  Sat, 27 Jun 2015 17:35:30 +0200
 
 pyfits (1:3.3-3) unstable; urgency=medium
 

Added: packages/pyfits/trunk/debian/patches/03-testsuite-ignore-deprecated.diff
===================================================================
--- packages/pyfits/trunk/debian/patches/03-testsuite-ignore-deprecated.diff	                        (rev 0)
+++ packages/pyfits/trunk/debian/patches/03-testsuite-ignore-deprecated.diff	2015-10-03 08:25:39 UTC (rev 34454)
@@ -0,0 +1,45 @@
+--- a/lib/pyfits/tests/test_header.py
++++ b/lib/pyfits/tests/test_header.py
+@@ -13,7 +13,7 @@
+ from ..extern.six.moves import zip, range
+ 
+ from ..card import _pad
+-from ..util import encode_ascii, _pad_length, BLOCK_SIZE
++from ..util import encode_ascii, _pad_length, BLOCK_SIZE, PyfitsDeprecationWarning
+ from . import PyfitsTestCase
+ from .util import catch_warnings, ignore_warnings, CaptureStdio
+ 
+@@ -657,6 +659,7 @@
+         # should be treated case-insensitively when performing lookups
+         assert 'ABCDEFGHI' in header
+ 
++    @ignore_warnings(PyfitsDeprecationWarning)
+     def test_hierarch_create_and_update(self):
+         """
+         Regression test for https://aeon.stsci.edu/ssb/trac/pyfits/ticket/158
+@@ -718,6 +721,7 @@
+             assert len(w) == 1
+             assert header['blah blah blah'], 'TESTE'
+ 
++    @ignore_warnings(PyfitsDeprecationWarning)
+     def test_short_hierarch_create_and_update(self):
+         """
+         Regression test for https://aeon.stsci.edu/ssb/trac/pyfits/ticket/158
+--- a/lib/pyfits/tests/test_image.py
++++ b/lib/pyfits/tests/test_image.py
+@@ -1082,6 +1082,7 @@
+                 hdul2[0].data[0] = 0
+                 assert (hdul[1].data == hdul2[0].data).all()
+ 
++    @ignore_warnings(PyfitsPendingDeprecationWarning)
+     def test_lossless_gzip_compression(self):
+         """Regression test for https://aeon.stsci.edu/ssb/trac/pyfits/ticket/198"""
+ 
+@@ -1106,6 +1107,7 @@
+         with fits.open(self.temp('test.fits')) as h:
+             assert (noise == h[1].data).all()
+ 
++    @ignore_warnings(PyfitsPendingDeprecationWarning)
+     def test_compression_column_tforms(self):
+         """Regression test for https://aeon.stsci.edu/ssb/trac/pyfits/ticket/199"""
+ 

Modified: packages/pyfits/trunk/debian/patches/series
===================================================================
--- packages/pyfits/trunk/debian/patches/series	2015-10-02 19:11:58 UTC (rev 34453)
+++ packages/pyfits/trunk/debian/patches/series	2015-10-03 08:25:39 UTC (rev 34454)
@@ -1,2 +1,3 @@
 01-system-cfitsio.diff
 02-fitscheck-exception.diff
+03-testsuite-ignore-deprecated.diff




More information about the Python-modules-commits mailing list