Skip to content

Commit 1830861

Browse files
committed
Fix flaky simplicial set test
1 parent 1b3f398 commit 1830861

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

src/sage/categories/simplicial_sets.py

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -444,29 +444,31 @@ def covering_map(self, character):
444444
445445
sage: # needs sage.graphs sage.groups
446446
sage: S1 = simplicial_sets.Sphere(1)
447-
sage: W = S1.wedge(S1)
447+
sage: S1_ = simplicial_sets.Sphere(1)
448+
sage: S1_.n_cells(1)[0].rename("sigma_1'")
449+
sage: W = S1.wedge(S1_)
448450
sage: G = CyclicPermutationGroup(3)
449451
sage: a, b = W.n_cells(1)
450452
sage: C = W.covering_map({a : G.gen(0), b : G.one()}); C
451453
Simplicial set morphism:
452454
From: Simplicial set with 9 non-degenerate simplices
453455
To: Wedge: (S^1 v S^1)
454-
Defn: [(*, ()), (*, (1,2,3)), (*, (1,3,2)), (sigma_1, ()),
455-
(sigma_1, ()), (sigma_1, (1,2,3)), (sigma_1, (1,2,3)),
456-
(sigma_1, (1,3,2)), (sigma_1, (1,3,2))]
457-
--> [*, *, *, sigma_1, sigma_1, sigma_1, sigma_1, sigma_1, sigma_1]
456+
Defn: [(*, ()), (*, (1,2,3)), (*, (1,3,2)), (sigma_1', ()),
457+
(sigma_1', (1,2,3)), (sigma_1', (1,3,2)), (sigma_1, ()),
458+
(sigma_1, (1,2,3)), (sigma_1, (1,3,2))]
459+
--> [*, *, *, sigma_1', sigma_1', sigma_1', sigma_1, sigma_1, sigma_1]
458460
sage: C.domain()
459461
Simplicial set with 9 non-degenerate simplices
460462
sage: C.domain().face_data()
461463
{(*, ()): None,
462464
(*, (1,2,3)): None,
463465
(*, (1,3,2)): None,
466+
(sigma_1', ()): ((*, ()), (*, ())),
467+
(sigma_1', (1,2,3)): ((*, (1,2,3)), (*, (1,2,3))),
468+
(sigma_1', (1,3,2)): ((*, (1,3,2)), (*, (1,3,2))),
464469
(sigma_1, ()): ((*, (1,2,3)), (*, ())),
465-
(sigma_1, ()): ((*, ()), (*, ())),
466470
(sigma_1, (1,2,3)): ((*, (1,3,2)), (*, (1,2,3))),
467-
(sigma_1, (1,2,3)): ((*, (1,2,3)), (*, (1,2,3))),
468-
(sigma_1, (1,3,2)): ((*, ()), (*, (1,3,2))),
469-
(sigma_1, (1,3,2)): ((*, (1,3,2)), (*, (1,3,2)))}
471+
(sigma_1, (1,3,2)): ((*, ()), (*, (1,3,2)))}
470472
"""
471473
from sage.topology.simplicial_set import AbstractSimplex, SimplicialSet
472474
from sage.topology.simplicial_set_morphism import SimplicialSetMorphism
@@ -531,20 +533,22 @@ def cover(self, character):
531533
532534
sage: # needs sage.graphs sage.groups
533535
sage: S1 = simplicial_sets.Sphere(1)
534-
sage: W = S1.wedge(S1)
536+
sage: S1_ = simplicial_sets.Sphere(1)
537+
sage: S1_.n_cells(1)[0].rename("sigma_1'")
538+
sage: W = S1.wedge(S1_)
535539
sage: G = CyclicPermutationGroup(3)
536540
sage: (a, b) = W.n_cells(1)
537541
sage: C = W.cover({a : G.gen(0), b : G.gen(0)^2})
538542
sage: C.face_data()
539543
{(*, ()): None,
540544
(*, (1,2,3)): None,
541545
(*, (1,3,2)): None,
546+
(sigma_1', ()): ((*, (1,3,2)), (*, ())),
547+
(sigma_1', (1,2,3)): ((*, ()), (*, (1,2,3))),
548+
(sigma_1', (1,3,2)): ((*, (1,2,3)), (*, (1,3,2))),
542549
(sigma_1, ()): ((*, (1,2,3)), (*, ())),
543-
(sigma_1, ()): ((*, (1,3,2)), (*, ())),
544550
(sigma_1, (1,2,3)): ((*, (1,3,2)), (*, (1,2,3))),
545-
(sigma_1, (1,2,3)): ((*, ()), (*, (1,2,3))),
546-
(sigma_1, (1,3,2)): ((*, ()), (*, (1,3,2))),
547-
(sigma_1, (1,3,2)): ((*, (1,2,3)), (*, (1,3,2)))}
551+
(sigma_1, (1,3,2)): ((*, ()), (*, (1,3,2)))}
548552
sage: C.homology(1) # needs sage.modules
549553
Z x Z x Z x Z
550554
sage: C.fundamental_group()

0 commit comments

Comments
 (0)