[3.13] gh-122546: use same filename for different exceptions in new repl (GH-123217) (#123226)

4 files changed