Calling .stop() on the mock object rather than the patcher left pyrpkg.log pointing to the mock object, which caused test_check_repo_has_namespace() to fail since it was expecting a particular message to be logged to stderr.
No idea why this isn't failing for other people -
$ pip show pytest mock Name: pytest Version: 3.2.3 Name: mock Version: 2.0.0
which are the F27 versions.
Ah - I hit the problem because I was running the tests under pytest rather than under nosetests - this still should make sense as a fix.
Good catch. Thank you very much.
Pull-Request has been merged by cqi
Calling .stop() on the mock object rather than the patcher left pyrpkg.log
pointing to the mock object, which caused test_check_repo_has_namespace()
to fail since it was expecting a particular message to be logged to stderr.
No idea why this isn't failing for other people -
which are the F27 versions.