From adf665fcaa6f60b34f37e1f77c7b6ecb0f9f16d1 Mon Sep 17 00:00:00 2001 From: Jeremy Carbaugh Date: Tue, 13 Mar 2012 23:48:53 -0700 Subject: [PATCH] don't call skipTest on python 2.6 --- saucebrush/tests/sources.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/saucebrush/tests/sources.py b/saucebrush/tests/sources.py index 83c645f..f190952 100644 --- a/saucebrush/tests/sources.py +++ b/saucebrush/tests/sources.py @@ -79,7 +79,9 @@ class SourceTestCase(unittest.TestCase): self.assertEqual(list(hts), [{'a': '1', 'b': '2', 'c': '3'}]) except ImportError: - self.skipTest("lxml is not installed") + # Python 2.6 doesn't have skipTest. We'll just suffer without it. + if hasattr(self, 'skipTest'): + self.skipTest("lxml is not installed") if __name__ == '__main__': unittest.main()