Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

            @wraps(func)
    def helper(*args, **kwds):
        return GeneratorContextManager(func(*args, **kwds))
        


src/d/j/django-pgfields-HEAD/tests/south_migrations/tests.py   django-pgfields(Download)
from django.utils.unittest import skipIf
from django_pg import models
from django_pg.utils.context import redirect_std
from django_pg.utils.south import south_installed
import six
        # The '-' argument to `schemamigration` sends the migration
        # to stdout rather than actually creating a real migration.
        with redirect_std() as std:
            call_command('schemamigration', 'south_migrations', '-', auto=True)
            self.migration_code = std['out'].getvalue()