def can_persist_fixtures():
    # If we're running python 2.7 or greater, we're fine
    if sys.hexversion >= 0x02070000:
        return True

    # Otherwise, nose and py.test support the setUpClass and tearDownClass
    # methods, so if we're using either of those, go ahead and run the tests
    filename = inspect.stack()[-1][1]
    executable = os.path.split(filename)[1]
    return executable in ('py.test', 'nosetests')
Returns True if it's possible to persist fixtures across tests.
dataset/ETHPy150Open croach/Flask-Fixtures/flask_fixtures/utils.py/can_persist_fixtures