Bas Couwenberg pushed to branch master at Debian GIS Project / python-snuggs


Commits:
9c0ccb2b by Bas Couwenberg at 2023-07-16T18:17:03+02:00
Add patch to fix FTBFS due to test failures.

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/series
- + debian/patches/test.patch


Changes:

=====================================
debian/changelog
=====================================
@@ -6,6 +6,7 @@ python-snuggs (1.4.7-4) UNRELEASED; urgency=medium
   * Bump debhelper compat to 13.
   * Use autopkgtest-pkg-pybuild testsuite.
   * Enable Salsa CI.
+  * Add patch to fix FTBFS due to test failures.
 
  -- Bas Couwenberg <[email protected]>  Thu, 22 Dec 2022 12:32:54 +0100
 


=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+test.patch


=====================================
debian/patches/test.patch
=====================================
@@ -0,0 +1,30 @@
+Description: Fix test failures.
+Author: Bas Couwenberg <[email protected]>
+Bug: https://github.com/mapbox/snuggs/issues/27
+
+--- a/test_snuggs.py
++++ b/test_snuggs.py
+@@ -191,6 +191,7 @@ def test_masked_arr():
+ 
+ 
+ # Parse and syntax error testing.
[email protected](strict=False, 
reason="https://github.com/mapbox/snuggs/issues/27";)
+ def test_missing_closing_paren():
+     with pytest.raises(SyntaxError) as excinfo:
+         snuggs.eval("(+ 1 2")
+@@ -206,6 +207,7 @@ def test_missing_func():
+     assert str(excinfo.value) == "'0' is not a function or operator"
+ 
+ 
[email protected](strict=False, 
reason="https://github.com/mapbox/snuggs/issues/27";)
+ def test_missing_func2():
+     with pytest.raises(SyntaxError) as excinfo:
+         snuggs.eval("(# 1 2)")
+@@ -221,6 +223,7 @@ def test_undefined_var():
+     assert str(excinfo.value) == "name 'bogus' is not defined"
+ 
+ 
[email protected](strict=False, 
reason="https://github.com/mapbox/snuggs/issues/27";)
+ def test_bogus_higher_order_func():
+     with pytest.raises(SyntaxError) as excinfo:
+         snuggs.eval("((bogus * 2) 2)")



View it on GitLab: 
https://salsa.debian.org/debian-gis-team/python-snuggs/-/commit/9c0ccb2bcfadd28cc35135b763a5d5e425fda0a8

-- 
View it on GitLab: 
https://salsa.debian.org/debian-gis-team/python-snuggs/-/commit/9c0ccb2bcfadd28cc35135b763a5d5e425fda0a8
You're receiving this email because of your account on salsa.debian.org.


_______________________________________________
Pkg-grass-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to