@bdd.when('selection is supported')
def selection_supported(qapp):
 if (not qapp.clipboard().supportsSelection()):
  pytest.skip("OS doesn't support primary selection!")

@ bdd . when ( 'selection is supported' ) def selection_supported ( qapp ) : if ( not qapp . clipboard ( ) . supportsSelection ( ) ) : pytest . skip ( "OS doesn't support primary selection!" )
skip the test if selection isnt supported .