@ocp781 test_direct_api.py-> test hash(empty) returns zero (modified)

This commit is contained in:
jdegenstein 2025-01-11 14:31:50 -06:00 committed by GitHub
parent 65f37ab441
commit 42261cad65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3559,7 +3559,7 @@ class TestShape(DirectApiTestCase):
with self.assertRaises(ValueError):
empty.geom_type
self.assertIs(empty, empty.fix())
self.assertEqual(empty.hash_code(), 0)
self.assertEqual(hash(empty), 0)
self.assertFalse(empty.is_same(Solid()))
self.assertFalse(empty.is_equal(Solid()))
self.assertTrue(empty.is_valid())