def test_bad_pack(self):
        try:
            session = ss.Session(pack=_bad_packer)
        except __HOLE__ as e:
            self.assertIn("could not serialize", str(e))
            self.assertIn("don't work", str(e))
        else:
            self.fail("Should have raised ValueError")
dataset/ETHPy150Open jupyter/jupyter_client/jupyter_client/tests/test_session.py/TestSession.test_bad_pack