Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.blessed fails its test suite #68427

Closed
peti opened this issue Sep 10, 2019 · 1 comment
Closed

python3Packages.blessed fails its test suite #68427

peti opened this issue Sep 10, 2019 · 1 comment
Labels
0.kind: regression Something that worked before working no longer 6.topic: python

Comments

@peti
Copy link
Member

peti commented Sep 10, 2019

I get the following error trying to compile the Python library blessed. Unfortunately, this breaks GNU Mailman, which depends on this package. git blame identified b3ddab8 as the commit that caused this error:

=================================== FAILURES ===================================
___________________ test_nested_formattingstring_type_error ____________________

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fffee5d0a50>

    def test_nested_formattingstring_type_error(monkeypatch):
        """Test formatters.FormattingString raising TypeError."""
        from blessed.formatters import FormattingString
    
        # given,
        pstr = FormattingString(u'a-', u'n-')
        expected_msg = (
            "Positional argument #1 is {0} expected any of "
            .format(type(1)))
    
        # exercise,
        with pytest.raises(TypeError) as err:
            pstr('text', 1, '...')
    
        # verify,
>       assert expected_msg in '{0}'.format(err)
E       assert "Positional argument #1 is <class 'int'> expected any of " in '<ExceptionInfo TypeError tblen=2>'
E        +  where '<ExceptionInfo TypeError tblen=2>' = <built-in method format of str object at 0x7fffee6b3130>(<ExceptionInfo TypeError tblen=2>)
E        +    where <built-in method format of str object at 0x7fffee6b3130> = '{0}'.format

blessed/tests/test_formatters.py:156: AssertionError
======================== 1 failed, 283 passed in 11.01s ========================

Ping: @FRidh

@peti peti added 0.kind: bug 0.kind: regression Something that worked before working no longer 6.topic: python and removed 0.kind: bug labels Sep 10, 2019
@peti
Copy link
Member Author

peti commented Sep 10, 2019

Issue reported upstream: jquast/blessed#109

@peti peti closed this as completed in 26771ad Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: regression Something that worked before working no longer 6.topic: python
Projects
None yet
Development

No branches or pull requests

1 participant