-m pytest
This is almost equivalent to invoking the command line script pytest ... directly, except that calling via python will also add the current directory to sys.path. ---
This page is auto-translated from /nishio/-m pytest using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.