PCPP2 • Practice Test 5
Free PCPP2 practice test — 10 questions with explanations. Set 5. No signup required.
You are refactoring a legacy module and want to use 'pytest' to check if a function raises a specific custom exception. Which construct is most idiomatic?
Choose an answer to begin — your selection is scored in the full session.
10 questions · instant feedback and full explanations after every question.