[GRASS-git] [OSGeo/grass] 3301c1: tests: Fix imprecise assert (#7391)

Edouard Choinière noreply at github.com
Thu May 14 09:47:03 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 3301c12033b1d3a68d956322dddeaf5e4493978d
      https://github.com/OSGeo/grass/commit/3301c12033b1d3a68d956322dddeaf5e4493978d
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2026-05-14 (Thu, 14 May 2026)

  Changed paths:
    M imagery/i.gensig/testsuite/test_i_gensig.py
    M imagery/i.svm.predict/testsuite/test_i_svm_predict.py
    M imagery/i.svm.train/testsuite/test_i_svm_train.py
    M lib/imagery/testsuite/test_imagery_signature_management.py
    M lib/init/testsuite/test_grass_tmp_mapset.py
    M python/grass/pygrass/vector/testsuite/test_geometry.py
    M python/grass/pygrass/vector/testsuite/test_geometry_attrs.py
    M raster/r.smooth.edgepreserve/testsuite/test_r_smooth_edgepreserve.py
    M temporal/t.rename/testsuite/test_t_rename.py

  Log Message:
  -----------
  tests: Fix imprecise assert (#7391)

Use a specific comparison assertion instead of a boolean assertion for relational checks.


* Fix for Imprecise assert

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix for Imprecise assert

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix for Imprecise assert

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix for Imprecise assert

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix for Imprecise assert

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix for Imprecise assert

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix for Imprecise assert

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix for Imprecise assert

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix for Imprecise assert

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix for Imprecise assert

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Potential fixes for 5 code quality findings

* Apply suggested fix to lib/imagery/testsuite/test_imagery_signature_management.py from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to lib/imagery/testsuite/test_imagery_signature_management.py from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to lib/imagery/testsuite/test_imagery_signature_management.py from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to lib/imagery/testsuite/test_imagery_signature_management.py from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to lib/imagery/testsuite/test_imagery_signature_management.py from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggestion from @echoix

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to raster/r.smooth.edgepreserve/testsuite/test_r_smooth_edgepreserve.py from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to raster/r.smooth.edgepreserve/testsuite/test_r_smooth_edgepreserve.py from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Fix for Imprecise assert

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix for Imprecise assert

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix for Imprecise assert

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix for Imprecise assert

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix for Imprecise assert

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix for Imprecise assert

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Apply suggested fix to imagery/i.gensig/testsuite/test_i_gensig.py from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to imagery/i.gensig/testsuite/test_i_gensig.py from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Fix for Imprecise assert

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix for Imprecise assert

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list