Because runtests.sh defines PAGURE_CONFIG to tests/test_config and that file has PAGURE_CI_SERVICES set, pagure.REDIS and/or pagure.lib.REDIS get set before every test case. Therefore we must make sure they get closed.
runtests.sh
PAGURE_CONFIG
tests/test_config
PAGURE_CI_SERVICES
pagure.REDIS
pagure.lib.REDIS
Let's rebase but looks fine, are the tests still passing?
rebased onto afb8f60cac3e7a78d548edff08cb5145003b612a
Rebased. I'm running the test suite now, I'm about 30 % through with no failures so far.
Test suite finished. I don't see any errors other than couple of flake8 complains not related to my PR.
I'm not even seeing these flake8 errors :(
Thanks for the PR :)
Pull-Request has been merged by pingou
Because
runtests.shdefinesPAGURE_CONFIGtotests/test_configand that file hasPAGURE_CI_SERVICESset,pagure.REDISand/orpagure.lib.REDISget set before every test case. Therefore we must make sure they get closed.