Пример #1
0
def test_ogr_refcount_4():

    with gdaltest.error_handler():
        ds = ogr.GetOpenDS(0)
    try:
        if ds._o != gdaltest.ds_2._o:
            gdaltest.post_reason('failed to fetch expected datasource')
            return 'failed'
    except:
        pass
Пример #2
0
def ogr_refcount_4():

    ds = ogr.GetOpenDS( 0 )
    try:
        if ds._o != gdaltest.ds_2._o:
            gdaltest.post_reason( 'failed to fetch expected datasource' )
            return 'failed'
    except:
        pass

    return 'success'