Force test_ec_curves to run when using python -O

Fixes: https://bugzilla.osafoundation.org/show_bug.cgi?id=13060