We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a9def2 commit 29f20d1Copy full SHA for 29f20d1
lib/iris/tests/unit/coords/test_Coord.py
@@ -839,5 +839,14 @@ def test_remove_bounds(self):
839
self.assertFalse(coord.climatological)
840
841
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
851
if __name__ == '__main__':
852
tests.main()
0 commit comments