Use `py` module correctly.
Merge pull request #2593 from mdboom/test/pytest-exception

AttributeError in pytest_plugins.py