fix(testing): Fix `--help` and `--version` for `py.test` (#16039)
Currently, if you call `py.test --version` or `py.test --help` (with no argument representing what files should be tested), the `file_or_dir` config option gets set to `None` rather than `[]`. When we then try to iterate over it, everything breaks. Arguably `pytest` should handle this gracefully itself, but in the meantime...