Tools and Tasks tests for Python 3.12

Build: #300 was successful Child of CASASPECS-MASTERBUILDCASALITH-308

Code commits

CASA6