'The backend\'s FOR UPDATE NOWAIT variant appears in
generated SQL when select_for_update is invoked.'

@skipUnlessDBFeature('has_select_for_update_nowait')
def test_for_update_sql_generated_nowait(self):

    with transaction.atomic():
        with CaptureQueriesContext(connection) as ctx:
            list(Person.objects.all().select_for_update(nowait=True))
    self.assertTrue(self.has_for_update_sql(ctx.captured_queries, nowait=True))
