don't call skipTest on python 2.6
This commit is contained in:
parent
99f2905c86
commit
adf665fcaa
@ -79,7 +79,9 @@ class SourceTestCase(unittest.TestCase):
|
|||||||
self.assertEqual(list(hts), [{'a': '1', 'b': '2', 'c': '3'}])
|
self.assertEqual(list(hts), [{'a': '1', 'b': '2', 'c': '3'}])
|
||||||
|
|
||||||
except ImportError:
|
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__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
Loading…
Reference in New Issue
Block a user