From 47d5aa05376670a7eea1f9118fda3c7f8c98c022 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Mon, 23 Aug 2021 12:11:16 -0700 Subject: oops, a missing word made it into the commit. --- simplejson/tests/test_namedtuple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'simplejson') diff --git a/simplejson/tests/test_namedtuple.py b/simplejson/tests/test_namedtuple.py index 03e6b14..8035a5f 100644 --- a/simplejson/tests/test_namedtuple.py +++ b/simplejson/tests/test_namedtuple.py @@ -145,5 +145,5 @@ class TestNamedTuple(unittest.TestCase): # potential for internal data corruption. Getting it to crash in # a debug build is not always easy either as it requires an # assert(!PyErr_Occurred()) that could fire later on. - self.assertRaises(TypeError): + with self.assertRaises(TypeError): json.dumps({23: fake}, namedtuple_as_object=True, for_json=False) -- cgit v1.2.1