astropy/astropy — pull request #84 by phn (2011-11-25 07:41:18+00:00)
Title: Add astropy version and some other info to py.test output.

The code is for adding astropy version and other information to the py.test output header.

For example:

platform linux2 -- Python 2.6.6 -- pytest-2.2.0

Testing Astropy version 0.0dev-r353.
Running tests in: astropy/constants.
Using astropy options: remote_data.

collected 8 items

Information added: version, package being tested, "special" astropy options used. The last is currently "remote_data" and "pep8". "pep8" is a "special option" since it skips all the others.

This is accomplished using ``pytest_report_header``.

Perhaps there are other builtin ways of determining the astropy version and other information? I thought I will submit this anyway.