Replace nose with pytest.