From c64199e3802a74569079c26b773ecd22430e523d Mon Sep 17 00:00:00 2001 From: Stuart Mumford Date: Wed, 30 May 2018 15:46:45 +0100 Subject: [PATCH] use ordereddict for predictable output --- src/towncrier/test/test_write.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/towncrier/test/test_write.py b/src/towncrier/test/test_write.py index fd7a66d4..5205bb9b 100644 --- a/src/towncrier/test/test_write.py +++ b/src/towncrier/test/test_write.py @@ -17,14 +17,14 @@ class WritingTests(TestCase): def test_append_at_top(self): fragments = OrderedDict([ - ("", { - ("142", "misc", 0): u"", - ("1", "misc", 0): u"", - ("4", "feature", 0): u"Stuff!", - ("4", "feature", 1): u"Second Stuff!", - ("2", "feature", 0): u"Foo added.", - ("72", "feature", 0): u"Foo added.", - }), + ("", OrderedDict([ + (("142", "misc", 0), u""), + (("1", "misc", 0), u""), + (("4", "feature", 0), u"Stuff!"), + (("4", "feature", 1), u"Second Stuff!"), + (("2", "feature", 0), u"Foo added."), + (("72", "feature", 0), u"Foo added."), + ])), ("Names", {}), ("Web", { ("3", "bugfix", 0): u"Web fixed.",