Skip to content

Fix test failure on 32-bit where a different element is picked#38148

Merged
vbraun merged 1 commit intosagemath:developfrom
vbraun:fix-polyhedral-complex-test-32-bit
Jun 9, 2024
Merged

Fix test failure on 32-bit where a different element is picked#38148
vbraun merged 1 commit intosagemath:developfrom
vbraun:fix-polyhedral-complex-test-32-bit

Conversation

@vbraun
Copy link
Member

@vbraun vbraun commented Jun 3, 2024

On Debian 12 32-bit I get:

**********************************************************************
File "src/sage/geometry/polyhedral_complex.py", line 935, in sage.geometry.polyhedral_complex.PolyhedralComplex._an_element_
Failed example:
    pc._an_element_().vertices_list()
Expected:
    [[0, 0], [0, 1/2], [1, 2]]
Got:
    [[0, 0], [1/3, 1/3], [1, 2]]
**********************************************************************
1 item had failures:
   1 of   4 in sage.geometry.polyhedral_complex.PolyhedralComplex._an_element_
    [469 tests, 1 failure, 17.41 s]
----------------------------------------------------------------------
sage -t --long --random-seed=0 src/sage/geometry/polyhedral_complex.py  # 1 doctest failed
----------------------------------------------------------------------

Just accept either of the two maximal cells

@github-actions
Copy link

github-actions bot commented Jun 3, 2024

Documentation preview for this PR (built with commit 6951817; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

Copy link
Contributor

@mkoeppe mkoeppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

vbraun pushed a commit to vbraun/sage that referenced this pull request Jun 5, 2024
sagemathgh-38148: Fix test failure on 32-bit where a different element is picked
    
On Debian 12 32-bit I get:
```
**********************************************************************
File "src/sage/geometry/polyhedral_complex.py", line 935, in
sage.geometry.polyhedral_complex.PolyhedralComplex._an_element_
Failed example:
    pc._an_element_().vertices_list()
Expected:
    [[0, 0], [0, 1/2], [1, 2]]
Got:
    [[0, 0], [1/3, 1/3], [1, 2]]
**********************************************************************
1 item had failures:
   1 of   4 in
sage.geometry.polyhedral_complex.PolyhedralComplex._an_element_
    [469 tests, 1 failure, 17.41 s]
----------------------------------------------------------------------
sage -t --long --random-seed=0 src/sage/geometry/polyhedral_complex.py
# 1 doctest failed
----------------------------------------------------------------------
```
Just accept either of the two maximal cells
    
URL: sagemath#38148
Reported by: Volker Braun
Reviewer(s): Matthias Köppe
@vbraun vbraun merged commit dc0986e into sagemath:develop Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants