def pytest_terminal_summary(terminalreporter):
 try:
  get_ipython()
 except NameError:
  return
 if (not terminalreporter.stats.get(u'failed')):
  return
 terminalreporter.ensure_newline()
 terminalreporter.write_line(u'Some tests are known to fail when run from the IPython prompt; especially, but not limited to tests involving logging and warning handling.  Unless you are certain as to the cause of the failure, please check that the failure occurs outside IPython as well.  See http://docs.astropy.org/en/stable/known_issues.html#failing-logging-tests-when-running-the-tests-in-ipython for more information.', yellow=True, bold=True)

def pytest_terminal_summary ( terminalreporter ) : try : get_ipython ( ) except NameError : return if ( not terminalreporter . stats . get ( u'failed' ) ) : return terminalreporter . ensure_newline ( ) terminalreporter . write_line ( u'Some tests are known to fail when run from the IPython prompt; especially, but not limited to tests involving logging and warning handling.  Unless you are certain as to the cause of the failure, please check that the failure occurs outside IPython as well.  See http://docs.astropy.org/en/stable/known_issues.html#failing-logging-tests-when-running-the-tests-in-ipython for more information.' , yellow = True , bold = True )
output a warning to ipython users in case any tests failed .