Fixed test broken by local_constant_names 

depreciation removed
Merge pull request #11276 from arunagw/build-fix

Fixed test broken by local_constant_names