Skip to content

Commit 29f20d1

Browse files
Add test
1 parent 2a9def2 commit 29f20d1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/iris/tests/unit/coords/test_Coord.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,5 +839,14 @@ def test_remove_bounds(self):
839839
self.assertFalse(coord.climatological)
840840

841841

842+
843+
class Test_Coord_is_abstract(tests.IrisTest):
844+
def test_instantiate_fail(self):
845+
emsg = ("Can't instantiate abstract class Coord with abstract"
846+
" methods __init__")
847+
with self.assertRaisesRegex(TypeError, emsg):
848+
coord = Coord(points=[0, 1])
849+
850+
842851
if __name__ == '__main__':
843852
tests.main()

0 commit comments

Comments
 (0)