Fix a deprecation with the expect syntax