@bdd.when('selection is not supported')
def selection_not_supported(qapp):
 if qapp.clipboard().supportsSelection():
  pytest.skip('OS supports primary selection!')

@ bdd . when ( 'selection is not supported' ) def selection_not_supported ( qapp ) : if qapp . clipboard ( ) . supportsSelection ( ) : pytest . skip ( 'OS supports primary selection!' )
skip the test if selection is supported .