def assert_no_open_files(path):
    files = get_open_files(path, log_open=40)
    if (_assert_no_open_files_cfg == 'assert'):
        assert (not files), ('Got following files still open: %s' % ','.join(files))
    elif files:
        if (_assert_no_open_files_cfg == 'pdb'):
            import pdb
            pdb.set_trace()
        elif (_assert_no_open_files_cfg == 'epdb'):
            import epdb
            epdb.serve()
        pass
def assert_no_open_files(path):
    files = get_open_files(path, log_open=40)
    if (_assert_no_open_files_cfg == 'assert'):
        assert (not files), ('Got following files still open: %s' % ','.join(files))
    elif files:
        if (_assert_no_open_files_cfg == 'pdb'):
            import pdb
            pdb.set_trace()
        elif (_assert_no_open_files_cfg == 'epdb'):
            import epdb
            epdb.serve()
        pass