test: fix deprecation warning due to util.print
There should not be a reason to keep using the deprecated API here.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines