This is an automated email from the git hooks/post-receive script. sebastic pushed a commit to branch master in repository python-snuggs.
commit b79b9c29f1c4f374631b0a9b98a4dcb7ed9853ec Author: Bas Couwenberg <sebas...@xs4all.nl> Date: Thu May 19 22:47:16 2016 +0200 Add patch to fix test failures with NumPy 1.11.0. --- debian/changelog | 2 ++ debian/patches/series | 1 + debian/patches/test-failures.patch | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) diff --git a/debian/changelog b/debian/changelog index 5afdf16..431dbb4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,8 @@ python-snuggs (1.3.1-3) UNRELEASED; urgency=medium * Team upload. * Override dh_python{2,3} to call dh_numpy{,3} too. * Bump Standards-Version to 3.9.8, no changes. + * Add patch to fix test failures with NumPy 1.11.0. + (closes: #824794) -- Bas Couwenberg <sebas...@debian.org> Mon, 28 Mar 2016 19:35:36 +0200 diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..e745beb --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +test-failures.patch diff --git a/debian/patches/test-failures.patch b/debian/patches/test-failures.patch new file mode 100644 index 0000000..b298a18 --- /dev/null +++ b/debian/patches/test-failures.patch @@ -0,0 +1,37 @@ +Description: Fix test failures with NumPy 1.11.0. +Author: Bas Couwenberg <sebas...@debian.org> +Bug-Debian: https://bugs.debian.org/824794 +Forwarded: https://github.com/mapbox/snuggs/pull/6 + +--- a/test_snuggs.py ++++ b/test_snuggs.py +@@ -151,7 +151,8 @@ def test_missing_closing_paren(): + result = snuggs.eval("(+ 1 2") + assert excinfo.value.lineno == 1 + assert excinfo.value.offset == 7 +- assert str(excinfo.value) == 'Expected ")"' ++ assert (str(excinfo.value) == 'Expected ")"' or ++ str(excinfo.value) == 'Expected {Forward: ... | Forward: ...}') + + + def test_missing_func(): +@@ -167,7 +168,8 @@ def test_missing_func2(): + result = snuggs.eval("(# 1 2)") + assert excinfo.value.lineno == 1 + assert excinfo.value.offset == 2 +- assert str(excinfo.value) == "expected a function or operator" ++ assert (str(excinfo.value) == "expected a function or operator" or ++ str(excinfo.value) == "Expected {Forward: ... | Forward: ...}") + + + def test_undefined_var(): +@@ -183,7 +185,8 @@ def test_bogus_higher_order_func(): + result = snuggs.eval("((bogus * 2) 2)") + assert excinfo.value.lineno == 1 + assert excinfo.value.offset == 3 +- assert str(excinfo.value) == "expected a function or operator" ++ assert (str(excinfo.value) == "expected a function or operator" or ++ str(excinfo.value) == "Expected {Forward: ... | Forward: ...}") + + + def test_type_error(): -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/python-snuggs.git _______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel