How to pass options to "make test"?

Marco Sulla Marco.Sulla.Python at gmail.com
Wed Jul 29 03:02:37 EDT 2020


After building CPython from source, I run the regression test suite, using
make test (I'm on Linux).
Now I would run only some tests, and pass a custom option (-R :)

I tried
TESTOPTS="test_pickle" make test
without success. I had to do:
./python -u -bb -E -Wd -m test -r --fail-env-changed -w -j 0 test_pickle
This works, but I would specify only custom options.

PS: -R option finds reference leaks (python -m test --help explains it)


More information about the Python-list mailing list