From 0b58ab8c83d86d72eb33d220e9a2e76ac95a04d6 Mon Sep 17 00:00:00 2001
From: Darko Poljak <foss@ungleich.com>
Date: Wed, 10 Oct 2018 12:34:31 +0200
Subject: [PATCH] Bypass Configuration singleton from other tests if any.

---
 cdist/test/exec/local.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cdist/test/exec/local.py b/cdist/test/exec/local.py
index 0e0cc755..0865b7dc 100644
--- a/cdist/test/exec/local.py
+++ b/cdist/test/exec/local.py
@@ -170,6 +170,9 @@ class LocalTestCase(test.CdistTestCase):
 
         os.environ['CDIST_PATH'] = conf_dir
 
+        # bypass singleton from other tests if any
+        cc.Configuration.instance = None
+
         configuration = cc.Configuration(argparse.Namespace(),
                                          env=os.environ)