Skip to content

Commit ed3dc5e

Browse files
committed
Accept that some python version after 3.9 raises a KeyError instead of TypeError in test case
1 parent 5d64204 commit ed3dc5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test_jsonstore.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ def test_del(self):
216216
del self.store["list", 1]
217217

218218
self.store.dict = {}
219-
with self.assertRaises(TypeError):
219+
# somewhere after python 3.9 this went from a TypeError to a KeyError
220+
with self.assertRaises((TypeError, KeyError)):
220221
del self.store["dict", slice("a")]
221222

222223
def test_context_and_deserialisation(self):

0 commit comments

Comments
 (0)