Source: behave
Version: 1.2.6-2
Severity: important
User: [email protected]
Usertags: pytest-v6

Hi,

behave FTBFS with pytest 6 in unstable.

Please find below the relevant part of the error log.

> I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_behave/build; 
> python3.9 -m pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.9.1, pytest-6.0.2, py-1.9.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, configfile: pytest.ini
> collected 222 items
> 
> tests/api/test_async_step.py s.....                                      [  
> 2%]
> tests/issues/test_issue0336.py ..                                        [  
> 3%]
> tests/issues/test_issue0449.py ...                                       [  
> 4%]
> tests/issues/test_issue0453.py ...                                       [  
> 6%]
> tests/issues/test_issue0458.py ....                                      [  
> 8%]
> tests/issues/test_issue0495.py ...                                       [  
> 9%]
> tests/unit/test_behave4cmd_command_shell_proc.py ........xx....          [ 
> 15%]
> tests/unit/test_capture.py ..........................                    [ 
> 27%]
> tests/unit/test_context_cleanups.py ........                             [ 
> 31%]
> tests/unit/test_explore_generator.py ....                                [ 
> 32%]
> tests/unit/test_fixture.py .................FooFixture.cleanup: FooFixture
> FooFixture.cleanup: foo_1
> FooFixture.cleanup: BAD
> FooFixture.cleanup: foo_3
> ...................          [ 49%]
> tests/unit/test_model_core.py ..........................                 [ 
> 60%]
> tests/unit/test_textutil.py ...............sssFFssFFss                   [ 
> 72%]
> tests/unit/test_userdata.py ............................................ [ 
> 92%]
> .................                                                        
> [100%]
> 
> =================================== FAILURES 
> ===================================
> _ 
> TestObjectToTextConversion.test_text__with_assert_failed_and_unicode_message[\xc4rgernis]
>  _
> 
> self = <tests.unit.test_textutil.TestObjectToTextConversion object at 
> 0x7f9aff00d220>
> message = 'Ärgernis'
> 
>     @pytest.mark.parametrize("message", [
>         u"Ärgernis", u"Übermütig"
>     ])
>     def test_text__with_assert_failed_and_unicode_message(self, message):
>         with pytest.raises(AssertionError) as e:
>             assert False, message
>     
>         text2 = text(e)
>         expected = u"AssertionError: %s" % message
>>       assert text2.endswith(expected)
> E       assert False
> E        +  where False = <built-in method endswith of str object at 
> 0x7f9aff104db0>('AssertionError: Ärgernis')
> E        +    where <built-in method endswith of str object at 
> 0x7f9aff104db0> = "<ExceptionInfo AssertionError('Ärgernis\\nassert False') 
> tblen=1>".endswith
> 
> tests/unit/test_textutil.py:217: AssertionError
> _ 
> TestObjectToTextConversion.test_text__with_assert_failed_and_unicode_message[\xdcberm\xfctig]
>  _
> 
> self = <tests.unit.test_textutil.TestObjectToTextConversion object at 
> 0x7f9aff00d8e0>
> message = 'Übermütig'
> 
>     @pytest.mark.parametrize("message", [
>         u"Ärgernis", u"Übermütig"
>     ])
>     def test_text__with_assert_failed_and_unicode_message(self, message):
>         with pytest.raises(AssertionError) as e:
>             assert False, message
>     
>         text2 = text(e)
>         expected = u"AssertionError: %s" % message
>>       assert text2.endswith(expected)
> E       assert False
> E        +  where False = <built-in method endswith of str object at 
> 0x7f9aff104f60>('AssertionError: Übermütig')
> E        +    where <built-in method endswith of str object at 
> 0x7f9aff104f60> = "<ExceptionInfo AssertionError('Übermütig\\nassert False') 
> tblen=1>".endswith
> 
> tests/unit/test_textutil.py:217: AssertionError
> _ 
> TestObjectToTextConversion.test_text__with_raised_exception_and_unicode_message[AssertionError-\xc4rgernis]
>  _
> 
> self = <tests.unit.test_textutil.TestObjectToTextConversion object at 
> 0x7f9afeeb91c0>
> exception_class = <class 'AssertionError'>, message = 'Ärgernis'
> 
>     @pytest.mark.parametrize("exception_class, message", [
>         (AssertionError, u"Ärgernis"),
>         (RuntimeError, u"Übermütig"),
>     ])
>     def test_text__with_raised_exception_and_unicode_message(self,
>                                                              exception_class,
>                                                              message):
>         with pytest.raises(exception_class) as e:
>             raise exception_class(message)
>     
>         text2 = text(e)
>         expected = u"%s: %s" % (exception_class.__name__, message)
>         assert isinstance(text2, six.text_type)
>>       assert text2.endswith(expected)
> E       assert False
> E        +  where False = <built-in method endswith of str object at 
> 0x7f9afef503b0>('AssertionError: Ärgernis')
> E        +    where <built-in method endswith of str object at 
> 0x7f9afef503b0> = "<ExceptionInfo AssertionError('Ärgernis') 
> tblen=1>".endswith
> 
> tests/unit/test_textutil.py:246: AssertionError
> _ 
> TestObjectToTextConversion.test_text__with_raised_exception_and_unicode_message[RuntimeError-\xdcberm\xfctig]
>  _
> 
> self = <tests.unit.test_textutil.TestObjectToTextConversion object at 
> 0x7f9afeeb99a0>
> exception_class = <class 'RuntimeError'>, message = 'Übermütig'
> 
>     @pytest.mark.parametrize("exception_class, message", [
>         (AssertionError, u"Ärgernis"),
>         (RuntimeError, u"Übermütig"),
>     ])
>     def test_text__with_raised_exception_and_unicode_message(self,
>                                                              exception_class,
>                                                              message):
>         with pytest.raises(exception_class) as e:
>             raise exception_class(message)
>     
>         text2 = text(e)
>         expected = u"%s: %s" % (exception_class.__name__, message)
>         assert isinstance(text2, six.text_type)
>>       assert text2.endswith(expected)
> E       assert False
> E        +  where False = <built-in method endswith of str object at 
> 0x7f9aff11ff30>('RuntimeError: Übermütig')
> E        +    where <built-in method endswith of str object at 
> 0x7f9aff11ff30> = "<ExceptionInfo RuntimeError('Übermütig') tblen=1>".endswith
> 
> tests/unit/test_textutil.py:246: AssertionError
> =============================== warnings summary 
> ===============================
> tests/unit/test_behave4cmd_command_shell_proc.py:2
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_behave/build/tests/unit/test_behave4cmd_command_shell_proc.py:2:
>  DeprecationWarning: invalid escape sequence \.
>     """
> 
> tests/unit/test_behave4cmd_command_shell_proc.py:26
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_behave/build/tests/unit/test_behave4cmd_command_shell_proc.py:26:
>  DeprecationWarning: invalid escape sequence \w
>     winpath_pattern = 
> u"^([A-Za-z]:(\\[\w\.\-]+)+)|((\\[\w\.\-]+)*)|(\s[\w\.\-]+([\w\.\-]+)*)$"
> 
> tests/unit/test_behave4cmd_command_shell_proc.py:64
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_behave/build/tests/unit/test_behave4cmd_command_shell_proc.py:64:
>  DeprecationWarning: invalid escape sequence \s
>     '^\s*File "(?P<path>.*)", line \d+, in ',
> 
> /<<PKGBUILDDIR>>/behave4cmd0/command_shell_proc.py:254
>   /<<PKGBUILDDIR>>/behave4cmd0/command_shell_proc.py:254: DeprecationWarning: 
> invalid escape sequence \s
>     '^\s*File "(?P<path>.*)", line \d+, in ',
> 
> <unknown>:2
> <unknown>:2
>   <unknown>:2: DeprecationWarning: invalid escape sequence \.
> 
> <unknown>:26
> <unknown>:26
>   <unknown>:26: DeprecationWarning: invalid escape sequence \w
> 
> <unknown>:64
> <unknown>:64
>   <unknown>:64: DeprecationWarning: invalid escape sequence \s
> 
> .pybuild/cpython3_3.9_behave/build/tests/issues/test_issue0336.py::TestIssue::test__problem_exists_with_problematic_encoding
>   /<<PKGBUILDDIR>>/behave/textutil.py:110: DeprecationWarning: invalid escape 
> sequence '\m'
>     return six.text_type(value, encoding, errors)
> 
> .pybuild/cpython3_3.9_behave/build/tests/issues/test_issue0495.py::test_issue[Hello
>  Alice]
> .pybuild/cpython3_3.9_behave/build/tests/issues/test_issue0495.py::test_issue[\xc4rgernis
>  ist \xfcberall]
> .pybuild/cpython3_3.9_behave/build/tests/issues/test_issue0495.py::test_issue[\xc4rgernis]
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_behave/build/tests/issues/test_issue0495.py:49:
>  DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead
>     logging.warn(message)
> 
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info 
> ============================
> FAILED 
> tests/unit/test_textutil.py::TestObjectToTextConversion::test_text__with_assert_failed_and_unicode_message[\xc4rgernis]
> FAILED 
> tests/unit/test_textutil.py::TestObjectToTextConversion::test_text__with_assert_failed_and_unicode_message[\xdcberm\xfctig]
> FAILED 
> tests/unit/test_textutil.py::TestObjectToTextConversion::test_text__with_raised_exception_and_unicode_message[AssertionError-\xc4rgernis]
> FAILED 
> tests/unit/test_textutil.py::TestObjectToTextConversion::test_text__with_raised_exception_and_unicode_message[RuntimeError-\xdcberm\xfctig]
> ======= 4 failed, 208 passed, 8 skipped, 2 xfailed, 14 warnings in 0.65s 
> =======
> E: pybuild pybuild:353: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_behave/build; python3.9 -m pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 
> returned exit code 13
> make: *** [debian/rules:5: build] Error 25
> dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

Reply via email to