Sébastien Labbé wrote:
> All tests passed on Ubuntu 14.04 with make ptestlong using
> --optional=mpir,python2,sage
> 
> Other than the Tutte polynomial one, I get two other slow doctests that
> are not marked with #long time. I can not confirm whether it is a
> regression as I don't keep my old version of sage.
> 
> 
> sage -t --long --warn-long 31.5 src/sage/graphs/generators/families.py
> **********************************************************************
> File "src/sage/graphs/generators/families.py", line 2053, in
> sage.graphs.generators.families.petersen_family
> Warning, slow doctest:
>     F2 = graphs.petersen_family(generate=True)
> Test ran for 99.31 s
>     [280 tests, 128.07 s]
> 
> 
> sage -t --long --warn-long 31.5 src/sage/combinat/posets/posets.py
> **********************************************************************
> File "src/sage/combinat/posets/posets.py", line 6430, in
> sage.combinat.posets.posets.FinitePoset._kl_poly
> Warning, slow doctest:
>     L._kl_poly()
> Test ran for 127.72 s
>     [1122 tests, 146.65 s]

Both keep calling 'pip list' as well (same issue as with Tutte polynomial).

Perhaps retry with

diff --git a/src/sage/misc/package.py b/src/sage/misc/package.py
index bdddb63..6422e87 100644
--- a/src/sage/misc/package.py
+++ b/src/sage/misc/package.py
@@ -290,7 +290,7 @@ def installed_packages():
     """
     from sage.env import SAGE_SPKG_INST
     installed = dict(pkgname_split(pkgname) for pkgname in
os.listdir(SAGE_SPKG_INST))
-    installed.update(pip_installed_packages())
+    # installed.update(pip_installed_packages())
     return installed

 def is_package_installed(package):


(Don't forget to run './sage -b' after changing the file, or just change
$SAGE_LOCAL/lib/python/site-packages/sage/misc/package.py temporarily.)

A branch doing a bit more can be found on #21291 [1].


The main issue is of course still that is_package_installed() gets
called far too often.  (There are meanwhile tickets addressing some
instances at least.)


-leif

[1] https://trac.sagemath.org/ticket/21291

-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.

Reply via email to