pytest: fix broken config check

Apologies for this. Fixes http://hydra.nixos.org/build/6256697