Python · Debugging & Testing
What is the cleanest way to test that a block of code raises an exception when the code isn't already wrapped in a function?
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
