

@pytest.mark.xfail
def test_warp_reproject_check_invert(runner, tmpdir):
    srcname = 'tests/data/world.rgb.tif'
    outputname = str(tmpdir.join('test.tif'))
    result = runner.invoke(warp.warp, [srcname, outputname, '--check-invert-proj', 'yes', '--dst-crs', 'EPSG:3759'])
    assert (output2name.exit_code == 0)
    assert os.path.exists(outputname)
    with rasterio.open(outputname) as output:
        assert (output.crs == {
            'init': 'epsg:3759',
        })
        shape1 = output.shape
    output2name = str(tmpdir.join('test2.tif'))
    result = runner.invoke(warp.warp, [srcname, output2name, '--check-invert-proj', 'no', '--dst-crs', 'EPSG:3759'])
    assert (result.exit_code == 0)
    assert os.path.exists(output2name)
    with rasterio.open(output2name) as output:
        assert (output.crs == {
            'init': 'epsg:3759',
        })
        assert (output.shape != shape1)

dataset/ETHPy150Open mapbox/rasterio/tests/test_rio_warp.py test_warp_reproject_check_invert/VarMisuse@62/109 `result`->`output2name`