From 9d0d2ae7ef8416186d6fb3c4e4d0058d506b6251 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 27 Feb 2012 18:12:37 +0000 Subject: [PATCH] Fixed a bug where test-clean would delete things it shouldn't --- test_problems/SConscript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test_problems/SConscript b/test_problems/SConscript index 0a4e6df5d..e064935f6 100644 --- a/test_problems/SConscript +++ b/test_problems/SConscript @@ -23,6 +23,8 @@ class Test(object): self.options = kwargs.get('options') or '' self.blessedName = blessedName self.artifacts = kwargs.get('artifacts') or () + if isinstance(self.artifacts, str): + self.artifacts = [self.artifacts] self.comparisons = kwargs.get('comparisons') or () self.tolerance = kwargs.get('tolerance') or 1e-5 # error tolerance for CSV comparison self.threshold = kwargs.get('threshold') or 1e-14 # error threshold for CSV comparison