Skip to content

Flaky HNF test in matrix_integer_dense_hnf.py #40751

@orlitzky

Description

@orlitzky

Looks like #33751 again?

sage-runtests --warn-long 5.0 --random-seed=136720810844292019216337175767903652208 src/sage/matrix/matrix_integer_dense_hnf.py
**********************************************************************
Error: Failed example:: Exception raised:
Traceback (most recent call last):
  File "/Users/runner/miniconda3/envs/sage-dev/lib/python3.12/site-packages/sage/doctest/forker.py", line 733, in _run
    self.compile_and_execute(example, compiler, test.globs)
  File "/Users/runner/miniconda3/envs/sage-dev/lib/python3.12/site-packages/sage/doctest/forker.py", line 1157, in compile_and_execute
    exec(compiled, globs)
  File "<doctest sage.matrix.matrix_integer_dense_hnf.benchmark_hnf[1]>", line 1, in <module>
    hnf.benchmark_hnf([Integer(10),Integer(25)],Integer(32))
  File "/Users/runner/miniconda3/envs/sage-dev/lib/python3.12/site-packages/sage/matrix/matrix_integer_dense_hnf.py", line 1178, in benchmark_hnf
    h, _ = hnf(a, proof=False)
           ^^^^^^^^^^^^^^^^^^^
  File "/Users/runner/miniconda3/envs/sage-dev/lib/python3.12/site-packages/sage/matrix/matrix_integer_dense_hnf.py", line 1078, in hnf
    H, pivots = probable_hnf(A, include_zero_rows=include_zero_rows,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/runner/miniconda3/envs/sage-dev/lib/python3.12/site-packages/sage/matrix/matrix_integer_dense_hnf.py", line 906, in probable_hnf
    H = hnf_square(C, proof=proof)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/runner/miniconda3/envs/sage-dev/lib/python3.12/site-packages/sage/matrix/matrix_integer_dense_hnf.py", line 554, in hnf_square
    raise ValueError("A must be square.")
ValueError: A must be square.

    hnf.benchmark_hnf([10,25],32)
Exception raised:
    Traceback (most recent call last):
      File "/Users/runner/miniconda3/envs/sage-dev/lib/python3.12/site-packages/sage/doctest/forker.py", line 733, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/Users/runner/miniconda3/envs/sage-dev/lib/python3.12/site-packages/sage/doctest/forker.py", line 1157, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.matrix.matrix_integer_dense_hnf.benchmark_hnf[1]>", line 1, in <module>
        hnf.benchmark_hnf([Integer(10),Integer(25)],Integer(32))
      File "/Users/runner/miniconda3/envs/sage-dev/lib/python3.12/site-packages/sage/matrix/matrix_integer_dense_hnf.py", line 1178, in benchmark_hnf
        h, _ = hnf(a, proof=False)
               ^^^^^^^^^^^^^^^^^^^
      File "/Users/runner/miniconda3/envs/sage-dev/lib/python3.12/site-packages/sage/matrix/matrix_integer_dense_hnf.py", line 1078, in hnf
        H, pivots = probable_hnf(A, include_zero_rows=include_zero_rows,
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/runner/miniconda3/envs/sage-dev/lib/python3.12/site-packages/sage/matrix/matrix_integer_dense_hnf.py", line 906, in probable_hnf
        H = hnf_square(C, proof=proof)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/runner/miniconda3/envs/sage-dev/lib/python3.12/site-packages/sage/matrix/matrix_integer_dense_hnf.py", line 554, in hnf_square
        raise ValueError("A must be square.")
    ValueError: A must be square.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions