Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "What does pytest do if code inside with pytest.raises(ValueError) completes normally?" on CodeWiki (https://codewiki.com/practice/mcq/python/checkpoint-4/checkpoint-4-missing-exception/).
Context (verbatim from the page):
"""
What does pytest do if code inside with pytest.raises(ValueError) completes normally?
It fails the test because the expected exception was not raised
It passes because completing normally is always acceptable
It raises ValueError on behalf of the tested code
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Python. Where you are unsure, say so.