From a0994fb5d21246ef429522dacb3ba7fc7ed0da53 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 1 Nov 2018 15:45:24 -0400 Subject: [PATCH] mjo/cone/permutation_invariant.py: fix tests with PYTHONPATH="." --- mjo/cone/permutation_invariant.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mjo/cone/permutation_invariant.py b/mjo/cone/permutation_invariant.py index ff04d7e..d664280 100644 --- a/mjo/cone/permutation_invariant.py +++ b/mjo/cone/permutation_invariant.py @@ -60,9 +60,13 @@ def is_permutation_invariant(K): A cone is said to be permutation-invariant if ``P(K)`` is a subset of ``K`` for every permutation matrix ``P``. - EXAMPLES: + SETUP:: sage: from mjo.cone.rearrangement import rearrangement_cone + sage: from mjo.cone.permutation_invariant import is_permutation_invariant + + EXAMPLES:: + sage: all([ is_permutation_invariant(rearrangement_cone(p,n)) ....: for n in range(3, 6) ....: for p in range(1, n) ]) -- 2.44.2