Fixed #21545 -- autoreload kqueue events weren't cleared which caused an infinite loop.
Merge pull request #2016 from loic/ticket21545

Fixed #21545 -- autoreload kqueue events weren't cleared which caused an infinite loop.
Fixed #21538 -- Added numpy to test/requirements/base.txt

Thanks Tim Graham for the report