[build][py] tests: don’t show wrong suggestions when detection don’t match what is expected