diff options
author | Ken Dreyer <kdreyer@redhat.com> | 2017-11-07 09:14:54 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-11-07 09:50:27 +0100 |
commit | 3d084fdd9fb93e2441238931ff1669ebbd69c86d (patch) | |
tree | e005e13019728cb8e13f783154aa9145c308e2ae /tests | |
parent | d656cbd066fdc39aa74c1e4a8e13d31f25c15f2c (diff) |
DebianChangelog: Strip trailing newlines from changes
Python3's message_from_string passes on a trailing newline from
dpkg-parsechangelog but the consumer of the output shouldn't need to
bother.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/doctests/test_Changelog.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/doctests/test_Changelog.py b/tests/doctests/test_Changelog.py index af7d40dd..dcaf08aa 100644 --- a/tests/doctests/test_Changelog.py +++ b/tests/doctests/test_Changelog.py @@ -239,6 +239,10 @@ def test_get_changes(): 19 >>> len(cl.get_changes('0.5.31').split('\\n')) 7 + >>> cl['Changes'].split('\\n')[0] + ' git-buildpackage (0.5.32) unstable; urgency=low' + >>> len(cl['Changes']) + 187 """ |