Skip to content

Commit

Permalink
autotest/gcore/pixfun.py: attempt at fixing failure on CI build-linux…
Browse files Browse the repository at this point in the history
…-ubuntu-focal

Since today, and perhaps related with an update of pypi numpy-1.22
(although that some pull requests aren't affected), we get a failure in
test_pixfun_log10_r().
See https://github.com/OSGeo/gdal/runs/4684162794
  • Loading branch information
rouault committed Jan 2, 2022
1 parent 0b34cd7 commit e3870e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autotest/gcore/pixfun.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def test_pixfun_log10_r():
assert refds is not None, ('Unable to open "%s" dataset.' % reffilename)
refdata = refds.GetRasterBand(1).ReadAsArray()

assert numpy.alltrue(data == numpy.log10(refdata))
assert numpy.allclose(data, numpy.log10(refdata))


###############################################################################
Expand Down

0 comments on commit e3870e3

Please sign in to comment.