Bump pytest version dependencies.
Review Request #12709 — Created Nov. 2, 2022 and submitted
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.