Apparently, when py.test is called it starts looking through the files/folders using standard test discovery rules. And some folders have access permissions that limit the access, thus this error occurs.
to use py.test one must first navigate to the folder with test cases.