diff options
-rw-r--r-- | simplejson/tests/test_namedtuple.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |