imported module 'test_cookies' has this __file__ attribute: [...] which is not the same as the test file we want to collect: [...]
I submitted cookies to Fedora Package Review process in order to get cookies packages into official repositories. Before making the RPM package, I had to remove test_cookies.py to avoid import file mismatch error message:
imported module 'test_cookies' has this file attribute: /home/makerpm/rpmbuild/BUILD/cookies-2.2.1/test_cookies.py which is not the same as the test file we want to collect: /home/makerpm/rpmbuild/BUILD/cookies-2.2.1/build/lib/test_cookies.py