Fix #2502.  Allow a way for affiliated packages to opt in to deprecations-as-exceptions.
Merge pull request #2572 from mdboom/testing/deprecations-as-exceptions-optional

Affiliated packages can opt-in to deprecations as exceptions