From 1426a0d036a7f6707aac142a51f155f507d26739 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Fri, 13 Mar 2020 15:49:42 -0400 Subject: cc_resolv_conf: introduce tests and stabilise output across Python versions (#251) This is a follow-up to #144 which fixed the rendering behaviour. While writing the tests, CI failed due to dict iteration differences across Python versions, so this also sorts output so that we will produce the same output across Python versions. --- templates/resolv.conf.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/resolv.conf.tmpl b/templates/resolv.conf.tmpl index b6d46b4b..f870be67 100644 --- a/templates/resolv.conf.tmpl +++ b/templates/resolv.conf.tmpl @@ -32,7 +32,7 @@ options {{flag-}} {% endfor %} -{%- for key, value in options.items() %} +{%- for key, value in options.items()|sort %} {{key}}:{{value-}} {% endfor %} {% endif %} -- cgit v1.2.3