[Python-modules-commits] r20747 - in packages/pywavelets/trunk/debian (4 files)
eriol-guest at users.alioth.debian.org
eriol-guest at users.alioth.debian.org
Tue Mar 13 02:53:40 UTC 2012
Date: Tuesday, March 13, 2012 @ 02:53:39
Author: eriol-guest
Revision: 20747
Skip wavelet filters coefficients doctest because it fails only
in Python 2.7 due Float repr improvements backported from 3.x
Added:
packages/pywavelets/trunk/debian/patches/02_skip-wavelet-filters-coefficients-doctest.patch
Modified:
packages/pywavelets/trunk/debian/changelog
packages/pywavelets/trunk/debian/patches/series
packages/pywavelets/trunk/debian/rules
Modified: packages/pywavelets/trunk/debian/changelog
===================================================================
--- packages/pywavelets/trunk/debian/changelog 2012-03-13 01:43:51 UTC (rev 20746)
+++ packages/pywavelets/trunk/debian/changelog 2012-03-13 02:53:39 UTC (rev 20747)
@@ -10,10 +10,13 @@
- Removed because no more needed after Squeeze release
* debian/patches/01_fix-cython-0-14-compiling.patch
- Made DEP3 compliant
+ * debian/patches/02_skip-wavelet-filters-coefficients-doctest.patch
+ - Skip wavelet filters coefficients doctest because it fails only
+ in Python 2.7 due Float repr improvements backported from 3.x
* debian/rules
- Enabled tests at build time
- -- Daniele Tricoli <eriol at mornie.org> Tue, 13 Mar 2012 02:33:50 +0100
+ -- Daniele Tricoli <eriol at mornie.org> Tue, 13 Mar 2012 03:50:55 +0100
pywavelets (0.2.0-3) unstable; urgency=low
Added: packages/pywavelets/trunk/debian/patches/02_skip-wavelet-filters-coefficients-doctest.patch
===================================================================
--- packages/pywavelets/trunk/debian/patches/02_skip-wavelet-filters-coefficients-doctest.patch (rev 0)
+++ packages/pywavelets/trunk/debian/patches/02_skip-wavelet-filters-coefficients-doctest.patch 2012-03-13 02:53:39 UTC (rev 20747)
@@ -0,0 +1,28 @@
+Description: Wavelet filters coefficients doctest is failing only in Python 2.7
+ due Float repr improvements backported from 3.x. Although the doctest can be
+ changed to check for True value comparing expected values with obtained values,
+ this is ugly to see especially in doctests used also as documentation.
+Author: Daniele Tricoli <eriol at mornie.org>
+Forwarded: https://bitbucket.org/nigma/pywt/issue/3
+Last-Update: 2012-03-13
+
+--- a/doc/source/regression/wavelet.rst
++++ b/doc/source/regression/wavelet.rst
+@@ -78,13 +78,13 @@
+ corresponds to lowpass and highpass decomposition filters and lowpass and
+ highpass reconstruction filters respectively:
+
+- >>> w.dec_lo
++ >>> w.dec_lo # doctest: +SKIP
+ [0.035226291882100656, -0.085441273882241486, -0.13501102001039084, 0.45987750211933132, 0.80689150931333875, 0.33267055295095688]
+- >>> w.dec_hi
++ >>> w.dec_hi # doctest: +SKIP
+ [-0.33267055295095688, 0.80689150931333875, -0.45987750211933132, -0.13501102001039084, 0.085441273882241486, 0.035226291882100656]
+- >>> w.rec_lo
++ >>> w.rec_lo # doctest: +SKIP
+ [0.33267055295095688, 0.80689150931333875, 0.45987750211933132, -0.13501102001039084, -0.085441273882241486, 0.035226291882100656]
+- >>> w.rec_hi
++ >>> w.rec_hi # doctest: +SKIP
+ [0.035226291882100656, 0.085441273882241486, -0.13501102001039084, -0.45987750211933132, 0.80689150931333875, -0.33267055295095688]
+
+ Another way to get the filters data is to use the :attr:`~Wavelet.filter_bank`
Modified: packages/pywavelets/trunk/debian/patches/series
===================================================================
--- packages/pywavelets/trunk/debian/patches/series 2012-03-13 01:43:51 UTC (rev 20746)
+++ packages/pywavelets/trunk/debian/patches/series 2012-03-13 02:53:39 UTC (rev 20747)
@@ -1 +1,2 @@
01_fix-cython-0-14-compiling.patch
+02_skip-wavelet-filters-coefficients-doctest.patch
Modified: packages/pywavelets/trunk/debian/rules
===================================================================
--- packages/pywavelets/trunk/debian/rules 2012-03-13 01:43:51 UTC (rev 20746)
+++ packages/pywavelets/trunk/debian/rules 2012-03-13 02:53:39 UTC (rev 20747)
@@ -38,6 +38,7 @@
python$* setup.py build
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+ set -e; \
cd tests; \
for test in $(TESTS); do \
PYTHONPATH=$(call pythonpath,python$*) python$* $$test; \
More information about the Python-modules-commits
mailing list