This is a library plus a test harness for collecting algorithms that use the GraphBLAS. For test coverage reports, see https://graphblas.org/LAGraph/ . Documentation: https://lagraph.readthedocs.org
test_MMRead contains a subtest that (strangely) test MMWrite. That test seems to modify the comments.txt and comments_*.mtx files. At the end of test_MMRead those files go back to how they were checked into the repository but that means that a failure in test_MMRead can drag on ghost failures in other tests (specifically observed in test_minmax). If test_MMRead passes all is well, but if it doesn't it can be pretty weird...
This PR changes the test to write to temp files, opened r/w with tmpfile() and rewinded instead of opened separately for write then read.
The total effect is not changing the data directory and remove this spurious effect.
test_MMRead
contains a subtest that (strangely) testMMWrite
. That test seems to modify thecomments.txt
andcomments_*.mtx
files. At the end oftest_MMRead
those files go back to how they were checked into the repository but that means that a failure intest_MMRead
can drag on ghost failures in other tests (specifically observed intest_minmax
). Iftest_MMRead
passes all is well, but if it doesn't it can be pretty weird...This PR changes the test to write to temp files, opened
r/w
withtmpfile()
and rewinded instead of opened separately for write then read.The total effect is not changing the data directory and remove this spurious effect.