Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Python
/
Python
What does pytest do if code inside with pytest.raises(ValueError) completes normally?
from Python
advanced
1 min
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
Check
Ask AI about this kata
Report an error
previous kata
Which statement correctly distinguishes json.dumps() from json.dump()?
Quiz
next kata
By default, what SystemExit status does argparse use for an invalid value such as --count…
Fill in
A new version is available
Reload