From a96745368e898d4a8aea227ef3e4d1d8cb223dcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 26 Apr 2023 19:31:27 +0200 Subject: [PATCH] "fix" tests on Python 3.4 and 3.5 can't rely on dict insertion order --- test/test_postprocessor.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/test_postprocessor.py b/test/test_postprocessor.py index 1630e8a3..ac89b55c 100644 --- a/test/test_postprocessor.py +++ b/test/test_postprocessor.py @@ -388,14 +388,13 @@ class MetadataTest(BasePostprocessorTest): """) def test_metadata_modify(self): - kwdict = {"foo": 0, "bar": {"bax": 1, "bay": 2, "baz": 3}} + kwdict = {"foo": 0, "bar": {"bax": 1, "bay": 2, "baz": 3, "ba2": {}}} self._create({ "mode": "modify", "fields": { "foo" : "{filename}-{foo!s}", "foo2" : "\fE bar['bax'] + 122", - "bar['baz']" : "{_now}", - "bar[\"ba2\"]" : "\fE {}", + "bar[\"baz\"]" : "{_now}", "bar['ba2'][a]": "test", }, }, kwdict)