You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_____________________________________________ ExtractPythonTestCase.test_extract_strip_comment_tags ______________________________________________
self = <tests.messages.test_extract.ExtractPythonTestCase testMethod=test_extract_strip_comment_tags>
def test_extract_strip_comment_tags(self):
buf = BytesIO(b"""\
#: This is a comment with a very simple
#: prefix specified
_('Servus')
# NOTE: This is a multiline comment with
# a prefix too
_('Babatschi')""")
messages = list(extract.extract('python', buf, comment_tags=['NOTE:', ':'],
strip_comment_tags=True))
self.assertEqual(u'Servus', messages[0][1])
self.assertEqual([u'This is a comment with a very simple',
> u'prefix specified'], messages[0][2])
E AssertionError: Lists differ: ['This is a comment with a very simple', 'prefix specified'] != []
E
E First list contains 2 additional elements.
E First extra element 0:
E 'This is a comment with a very simple'
E
E - ['This is a comment with a very simple', 'prefix specified']
E + []
tests/messages/test_extract.py:422: AssertionError
Reproduced using git master @ 7ebdf5a via
tox -e pypy3
.The text was updated successfully, but these errors were encountered: