Skip to content

Commit

Permalink
Trac #32891: Unstable doctest geometry/hyperbolic_space/hyperbolic_mo…
Browse files Browse the repository at this point in the history
…del.py

Part of #32544:

{{{
sage -t --long --random-seed=257293673212457698646690051018428858654
src/sage/geometry/hyperbolic_space/hyperbolic_model.py
**********************************************************************
File "src/sage/geometry/hyperbolic_space/hyperbolic_model.py", line 567,
in sage.geometry.hyperbolic_space.hyperbolic_model.HyperbolicModel.rando
m_geodesic
Failed example:
    bool((h.endpoints()[0].coordinates()).imag() >= 0)
Expected:
    True
Got:
    False
**********************************************************************
1 item had failures:
   1 of   3 in sage.geometry.hyperbolic_space.hyperbolic_model.Hyperboli
cModel.random_geodesic
    [234 tests, 1 failure, 0.77 s]
------------------------------------
}}}

URL: https://trac.sagemath.org/32891
Reported by: gh-kliem
Ticket author(s): Michael Orlitzky
Reviewer(s): Travis Scrimshaw
  • Loading branch information
Release Manager committed Jan 30, 2022
2 parents 65aef17 + eddded5 commit 50d9be9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sage/geometry/hyperbolic_space/hyperbolic_model.py
Expand Up @@ -564,8 +564,9 @@ def random_geodesic(self, **kwargs):
EXAMPLES::
sage: h = HyperbolicPlane().PD().random_geodesic()
sage: bool((h.endpoints()[0].coordinates()).imag() >= 0)
sage: all( e.coordinates().abs() <= 1 for e in h.endpoints() )
True
"""
R = self.realization_of().a_realization()
g_ends = [R.random_point(**kwargs) for k in range(2)]
Expand Down

0 comments on commit 50d9be9

Please sign in to comment.