Ensure expectNoDeprecation works in production mode.
Merge pull request #146 from rwjblue/allow-NONE-usage-in-deprecations

Ensure expectNoDeprecation works in production mode.