expose warnings=
to pytester assert_outcomes()
#8952
Merged
warnings=
to pytester assert_outcomes()
#8952