Source: python-pcre2
Version: 0.3.0+ds-1
Severity: important
Tags: ftbfs

https://buildd.debian.org/status/logs.php?pkg=python-pcre2&ver=0.3.0%2Bds-1

=================================== FAILURES ===================================
____________ test_pattern_jit_compile_success[a+b+c*d*-0-SUCCESS0] _____________

pattern = b'a+b+c*d*', options = 0, return_code = 'SUCCESS'

    @pytest.mark.parametrize("pattern,options,return_code", 
test_data_pattern_compile_success)
    def test_pattern_jit_compile_success(pattern, options, return_code):
        try:
            p = pcre2.compile(pattern, options=options, jit=True)
            rc = "SUCCESS"
            assert p.jit_size > 0
        except CompileError as e:
            rc = "COMPILE_ERROR"
        except LibraryError as e:
            rc = "LIB_ERROR"
>       assert rc == return_code
E       AssertionError: assert 'LIB_ERROR' == 'SUCCESS'
E         - SUCCESS
E         + LIB_ERROR

tests/test_pattern.py:43: AssertionError
...
utils.pyx:108: LibraryError
=========================== short test summary info ============================
FAILED 
tests/test_pattern.py::test_pattern_jit_compile_success[a+b+c*d*-0-SUCCESS0]
FAILED 
tests/test_pattern.py::test_pattern_jit_compile_success[(?<foo>a+b+)c*d*-0-SUCCESS0]
FAILED 
tests/test_pattern.py::test_pattern_jit_compile_success[\xc3\xa5+\xe2\x88\xab+\xc3\xa7*\xe2\x88\x82*-0-SUCCESS]
FAILED 
tests/test_pattern.py::test_pattern_jit_compile_success[a+b+c*d*-0-SUCCESS1]
FAILED 
tests/test_pattern.py::test_pattern_jit_compile_success[(?<foo>a+b+)c*d*-0-SUCCESS1]
FAILED 
tests/test_pattern.py::test_pattern_jit_compile_success[(?<foo>a+b+)c*d*(?<foo>a+b+)-64-SUCCESS]
FAILED 
tests/test_pattern.py::test_pattern_jit_compile_success[\xe5+\u222b+\xe7*\u2202*-0-SUCCESS]
FAILED 
tests/test_pattern.py::test_pattern_jit_compile_success[(?<\u0192\xf8\xf8>a+b+)c*d*-0-SUCCESS]
FAILED tests/test_pattern.py::test_pattern_jit_findall - pcre2.exceptions.Lib...
FAILED tests/test_pattern.py::test_pattern_jit_split - pcre2.exceptions.Libra...
======================== 10 failed, 52 passed in 1.60s =========================

Reply via email to