Skip to content

Commit 05e3ba6

Browse files
committed
PR #35969: fix review comments
1 parent 7181883 commit 05e3ba6

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/sage/combinat/posets/hasse_diagram.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,12 +1067,13 @@ def moebius_function_matrix(self, algorithm='cython'):
10671067
[ 0 0 0 0 0 0 0 1]
10681068
10691069
TESTS::
1070-
sage: # needs sage.modules
1071-
sage: H.moebius_function_matrix().is_immutable() # optional - sage.libs.flint
1070+
1071+
sage: # needs sage.modules sage.libs.flint
1072+
sage: H.moebius_function_matrix().is_immutable()
10721073
True
1073-
sage: hasattr(H,'_moebius_function_matrix') # optional - sage.libs.flint
1074+
sage: hasattr(H,'_moebius_function_matrix')
10741075
True
1075-
sage: H.moebius_function == H._moebius_function_from_matrix # optional - sage.libs.flint
1076+
sage: H.moebius_function == H._moebius_function_from_matrix
10761077
True
10771078
sage: H = posets.TamariLattice(3)._hasse_diagram
10781079
sage: M = H.moebius_function_matrix('matrix'); M
@@ -1081,13 +1082,13 @@ def moebius_function_matrix(self, algorithm='cython'):
10811082
[ 0 0 1 -1 0]
10821083
[ 0 0 0 1 -1]
10831084
[ 0 0 0 0 1]
1084-
sage: _ = H.__dict__.pop('_moebius_function_matrix') # optional - sage.modules
1085-
sage: H.moebius_function_matrix('cython') == M # optional - sage.libs.flint sage.modules
1085+
sage: _ = H.__dict__.pop('_moebius_function_matrix')
1086+
sage: H.moebius_function_matrix('cython') == M
10861087
True
1087-
sage: _ = H.__dict__.pop('_moebius_function_matrix') # optional - sage.libs.flint sage.modules
1088-
sage: H.moebius_function_matrix('recursive') == M # optional - sage.modules
1088+
sage: _ = H.__dict__.pop('_moebius_function_matrix')
1089+
sage: H.moebius_function_matrix('recursive') == M
10891090
True
1090-
sage: _ = H.__dict__.pop('_moebius_function_matrix') # optional - sage.modules
1091+
sage: _ = H.__dict__.pop('_moebius_function_matrix')
10911092
sage: H.moebius_function_matrix('banana')
10921093
Traceback (most recent call last):
10931094
...
@@ -1158,7 +1159,6 @@ def coxeter_transformation(self, algorithm='cython'):
11581159
11591160
EXAMPLES::
11601161
1161-
sage: # needs sage.modules
11621162
sage: # needs sage.libs.flint sage.modules
11631163
sage: P = posets.PentagonPoset()._hasse_diagram
11641164
sage: M = P.coxeter_transformation(); M
@@ -1173,7 +1173,6 @@ def coxeter_transformation(self, algorithm='cython'):
11731173
11741174
TESTS::
11751175
1176-
sage: # needs sage.modules
11771176
sage: # needs sage.libs.flint sage.modules
11781177
sage: P = posets.PentagonPoset()._hasse_diagram
11791178
sage: M = P.coxeter_transformation()

0 commit comments

Comments
 (0)