Skip to content

Commit fca6ac6

Browse files
committed
Set print_cyclic in Permutation printing test
1 parent e74304d commit fca6ac6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sympy/printing/tests/test_repr.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,4 +302,9 @@ def test_Cycle():
302302

303303
def test_Permutation():
304304
import_stmt = "from sympy.combinatorics import Permutation"
305-
sT(Permutation(1, 2), "Permutation(1, 2)", import_stmt)
305+
print_cyclic = Permutation.print_cyclic
306+
try:
307+
Permutation.print_cyclic = True
308+
sT(Permutation(1, 2), "Permutation(1, 2)", import_stmt)
309+
finally:
310+
Permutation.print_cyclic = print_cyclic

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy