The correct syntax for `assertRaises` is:

    with self.assertRaises(Exception):
        serialize_string_literal(2.31)

or, less preferred: `self.assertRaises(Exception, serialize_string_literal, 2.31)`