I would take this further and replace the version check below this one with `if bad_pyparsing:`.

https://github.com/astropy/astropy/pull/1172