bpo-46542: test_json uses support.infinite_recursion() (GH-30972)


Fix test_json tests checking for RecursionError: modify these tests
to use support.infinite_recursion().
(cherry picked from commit e7a6285f1be18992191599792524d3aa6aedfa55)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 files changed