Skip to content
Snippets Groups Projects
Commit b65e513a authored by Celeste's avatar Celeste Committed by Andy Postnikov
Browse files
parent e7705956
No related branches found
No related tags found
1 merge request!53908community/py3-snuggs: mark test as xfail
Pipeline #188820 skipped
......@@ -12,7 +12,9 @@ depends="python3 py3-numpy py3-parsing"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-hypothesis"
subpackages="$pkgname-pyc"
source="$_pkgname-$pkgver.tar.gz::https://github.com/mapbox/snuggs/archive/$pkgver.tar.gz"
source="$_pkgname-$pkgver.tar.gz::https://github.com/mapbox/snuggs/archive/$pkgver.tar.gz
test-xfail.patch
"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
......@@ -29,4 +31,5 @@ package() {
sha512sums="
c1f40e521d1b0cf15075b22b04000c74ecbd0522cdd820b8c159aac812924d877349b3f3bca93b09eed5b025a34c26665a41c7a52a8145419558b115cf8ef361 snuggs-1.4.7.tar.gz
c96c086fc20141ea2c4904c6cd00bf895c1a1a37f1334e1a020671e1684eaf97da6b5fd1a027cf3c074684bbaff5d2f3ea95c3b3a5ad5d2037bae4586d8daaf5 test-xfail.patch
"
Patch-Source: https://salsa.debian.org/debian-gis-team/python-snuggs/-/raw/master/debian/patches/test.patch
Description: Fix test failures.
Author: Bas Couwenberg <sebastic@debian.org>
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.
+@pytest.mark.xfail(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"
+@pytest.mark.xfail(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"
+@pytest.mark.xfail(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)")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment