See https://github.com/cbmi/avocado/commit/ce39edb8ba336048dbd95a6106da81c68adf3358