Bump pytest version dependencies.
Review Request #12710 — Created Nov. 2, 2022 and submitted — Latest diff uploaded
Pytest has a new version out, which includes some new deprecations.
It turns out that these don't affect us, but we might as well update
since it all works as expected.
Ran unit tests.