I tried the clean way, by setting the PYTHONPATH environment variable for CTest, using SET (CTEST_ENVIRONMENT blablab), but that didn't seem to work.
This is currently failing (and causing the object_delete test to fail). To be fixed separately