original_docstring: Make sure a QtApplication is active.
  
      
docstring: Make sure a QtApplication is active.
docstring_tokens: Make sure a QtApplication is active .
code: def qt_app():
      """Make sure a QtApplication is active.
  
      """
      try:
          from enaml.qt.qt_application import QtApplication
      except Exception:
          pytest.skip('No Qt binding found: %s' % format_exc())
  
      app = QtApplication.instance()
      if app is None:
          app = QtApplication()
          yield app
          app.stop()
      else:
          yield app
code_tokens: def qt_app ( ) : try : from enaml . qt . qt_application import QtApplication except Exception : pytest . skip ( 'No Qt binding found: %s' % format_exc ( ) ) app = QtApplication . instance ( ) if app is None : app = QtApplication ( ) yield app app . stop ( ) else : yield app
short_docstring: Make sure a QtApplication is active.
short_docstring_tokens: Make sure a QtApplication is active .
comment: """Make sure a QtApplication is active.
  
      """