tests: Deal with Python output differences.