removing xfail; comment cleanup

This commit is contained in:
dnomadb 2016-06-07 12:01:05 -07:00
parent 7247f375d6
commit d0aed03a0d
2 changed files with 4 additions and 4 deletions

View File

@ -448,6 +448,7 @@ def _reproject(
for i in range(src_count):
psWOptions.padfSrcNoDataReal[i] = src_nodata
psWOptions.padfSrcNoDataImag[i] = 0.0
warp_extras = _gdal.CSLSetNameValue(
warp_extras, "UNIFIED_SRC_NODATA", "YES")

View File

@ -479,7 +479,6 @@ def test_reproject_no_init_nodata_tofile(tmpdir):
dst_nodata=0.0
)
# 200s should not be overwritten by 100s
reproject(
source2,
rasterio.band(dst, 1),
@ -492,16 +491,16 @@ def test_reproject_no_init_nodata_tofile(tmpdir):
init_dest_nodata=False
)
# 200s should not be overwritten by 100s
with rasterio.open(tiffname) as src:
assert src.read().max() == 200
@pytest.mark.xfail
def test_reproject_no_init_nodata_toarray():
"""Test that nodata is being initialized."""
params = default_reproject_params()
source1 = np.zeros((params.width, params.height), dtype=np.uint8)
source1 = np.zeros((params.width, params.height))
source2 = source1.copy()
out = source1.copy()
@ -524,7 +523,6 @@ def test_reproject_no_init_nodata_toarray():
assert out.max() == 200
assert out.min() == 0
# 200s should NOT be overwritten by 100s
reproject(
source2,
@ -538,6 +536,7 @@ def test_reproject_no_init_nodata_toarray():
init_dest_nodata=False
)
# 200s should NOT be overwritten by 100s
assert out.max() == 200
assert out.min() == 0