def test_dictrecursion(self):
        x = {}
        x["test"] = x
        try:
            json.dumps(x)
        except __HOLE__:
            pass
        else:
            self.fail("didn't raise ValueError on dict recursion")
        x = {}
        y = {"a": x, "b": x}
        # ensure that the marker is cleared
        json.dumps(x)
dataset/ETHPy150Open CollabQ/CollabQ/vendor/simplejson/tests/test_recursion.py/TestRecursion.test_dictrecursion