Skip to content

Commit 3d340b4

Browse files
committed
Add reproducer for issue 1195
1 parent f6b8924 commit 3d340b4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/messages/test_extract.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,4 +575,7 @@ def test_issue_1195():
575575
}
576576
""")
577577
messages = list(extract.extract('python', buf, {'_': None}, ["NOTE"], {}))
578-
assert messages == [(5, 'Text string that is on a new line', ['NOTE: Text describing a test string'], None)]
578+
message = messages[0]
579+
assert message[0] in (5, 6) # Depends on whether #1126 is in
580+
assert message[1] == 'Text string that is on a new line'
581+
assert message[2] == ['NOTE: Text describing a test string']

0 commit comments

Comments
 (0)