From afa45f417b1ae83d58fdb9da49ae68471eb0817f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 30 Oct 2024 08:35:44 +0100 Subject: [PATCH] [Python] Avoid nondeterminism in error message The message would vary between reruns, which is not useful. --- interfaces/cython/cantera/composite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/cython/cantera/composite.py b/interfaces/cython/cantera/composite.py index bc6de6fb0f..af09e282d7 100644 --- a/interfaces/cython/cantera/composite.py +++ b/interfaces/cython/cantera/composite.py @@ -918,7 +918,7 @@ def join(species): if valid_species: if len(valid_species) != len(all_species): - incompatible = list(set(valid_species) ^ set(all_species)) + incompatible = sorted(set(valid_species) ^ set(all_species)) raise ValueError('incompatible species information for ' '{}'.format(incompatible))