Permalink
Browse files

don't call skipTest on python 2.6

  • Loading branch information...
jcarbaugh committed Mar 14, 2012
1 parent 99f2905 commit adf665fcaa6f60b34f37e1f77c7b6ecb0f9f16d1
Showing with 3 additions and 1 deletion.
  1. +3 −1 saucebrush/tests/sources.py
@@ -79,7 +79,9 @@ def test_html_table_source(self):
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()

0 comments on commit adf665f

Please sign in to comment.