getpelican/pelican — pull request #559 by saimn (2012-10-25 20:51:38+00:00)
Title: refactor the check of executable for unit tests

pandoc was checked directly with a `os.system` call, and the output with version
and copyright of pandoc was displayed when running tests.

- replace the pandoc check with the `skipIfNoExecutable` function.
- in `skipIfNoExecutable`, the `valid_exit_code` is not needed, the executable
is not found if an `OSError` exception is catched.