tests: fix backward compatibility with 3.12 for hasattr
All checks were successful
All checks were successful
This commit is contained in:
@@ -14,7 +14,7 @@ class TestTaxonomy(unittest.TestCase):
|
|||||||
self.assertEqual(self.taxonomy.api, 'vulkan')
|
self.assertEqual(self.taxonomy.api, 'vulkan')
|
||||||
|
|
||||||
def test_taxonomy_tags(self):
|
def test_taxonomy_tags(self):
|
||||||
self.assertHasAttr(self.taxonomy, 'tags')
|
self.assertTrue(hasattr(self.taxonomy, 'tags'))
|
||||||
self.assertIsInstance(self.taxonomy.tags, Container)
|
self.assertIsInstance(self.taxonomy.tags, Container)
|
||||||
self.assertIn('KHR', self.taxonomy.tags)
|
self.assertIn('KHR', self.taxonomy.tags)
|
||||||
self.assertIn('EXT', self.taxonomy.tags)
|
self.assertIn('EXT', self.taxonomy.tags)
|
||||||
|
|||||||
Reference in New Issue
Block a user