testing/test_monkeypatch: fix some patches leaking into pytest code
testing/test_monkeypatch: fix some patches leaking into pytest code

The tests patch `os.path.abspath` which can break some pytest internal
code since the patching is not undone immediately.

pytest-dev/pytest,markshao/pytest,RonnyPfannschmidt/pytest,Akasurde/pytest