Backport PR #38574 on branch 1.2.x (TST: fix some mpl warnings)
Backport PR #38574: TST: fix some mpl warnings
picking up decorator 5.0.5 on 1.2.x whereas on master 4.4.2. will merge this and backport #40768 for now