permit execution of tests with optimization set

- all tests except object tests now run with PYTHONOPTIMIZE=2
This commit is contained in:
The MMGen Project 2022-01-19 11:43:52 +00:00
commit b995cbf71e
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
4 changed files with 16 additions and 0 deletions

View file

@ -257,6 +257,11 @@ t_obj="
"
f_obj='Data object tests completed'
[ "$PYTHONOPTIMIZE" ] && {
echo -e "${YELLOW}PYTHONOPTIMIZE set, skipping object tests$RESET"
t_obj_skip='-'
}
i_color='Color'
s_color='Testing terminal colors'
t_color="- $colortest_py"