2 ms·
> I don't think "doctests built in" means the same thing when Python has a module you must choose to import and add to your test infrastructure If you're using
by masklinn 4y ago
> I don't think "doctests built in" means the same thing when Python has a module you must choose to import and add to your test infrastructure
If you're using pytest, then it's just a flag away (well two if you're using both docstring-doctests and document-doctests, but the latter seems unlikely).
But that it's opt-in makes sense either way, as doctest support was added later on, whereas in Rust it's been there all along.