On Sage 8.9.beta8, running optional and external tests

Using 
--optional=awali,cbc,cryptominisat,dot2tex,e_antic,external,glucose,memlimit,normaliz,notedown,openssl,pandoc_attributes,pycosat,pynormaliz,python2,rst2ipynb,sage

I get:

----------------------------------------------------------------------
sage -t --long src/sage/databases/oeis.py  # 1 doctest failed
sage -t --long src/sage/combinat/designs/ext_rep.py  # 1 doctest failed
sage -t --long src/sage/databases/findstat.py  # Timed out
----------------------------------------------------------------------
External software detected for doctesting: 
ffmpeg,graphviz,gurobi,imagemagick,internet,latex,pandoc

Rerunning failed tests, I get:

----------------------------------------------------------------------
sage -t --long src/sage/databases/oeis.py  # 1 doctest failed
sage -t --long src/sage/databases/findstat.py  # Timed out
----------------------------------------------------------------------
External software detected for doctesting: internet

Failures are copied below. findstat.py has lots of failures before the 
timed out test happening at line 2867

Follow up at https://trac.sagemath.org/ticket/25536

sage -t --long src/sage/databases/oeis.py
**********************************************************************
File "src/sage/databases/oeis.py", line 90, in sage.databases.oeis
Failed example:
    p.cross_references(fetch=True)                # optional -- internet
Expected:
    0: A000798: Number of different quasi-orders (or topologies, or 
transitive digraphs) with n labeled elements.
    1: A001035: Number of partially ordered sets ("posets") with n labeled 
elements (or labeled acyclic transitive digraphs).
    2: A001930: Number of topologies, or transitive digraphs with n 
unlabeled nodes.
    3: A006057: Number of topologies on n labeled points satisfying axioms 
T_0-T_4.
    4: A079263: Number of constrained mixed models with n factors.
    5: A079265: Number of antisymmetric transitive binary relations on n 
unlabeled points.
    6: A263859: Triangle read by rows: T(n,k) (n>=1, k>=0) is the number of 
posets with n elements and rank k (or depth k+1).
Got:
     0: A000798: Number of different quasi-orders (or topologies, or 
transitive digraphs) with n labeled elements.
     1: A001035: Number of partially ordered sets ("posets") with n labeled 
elements (or labeled acyclic transitive digraphs).
     2: A001930: Number of topologies, or transitive digraphs with n 
unlabeled nodes.
     3: A006057: Number of topologies on n labeled points satisfying axioms 
T_0-T_4.
     4: A079263: Number of constrained mixed models with n factors.
     5: A079265: Number of antisymmetric transitive binary relations on n 
unlabeled points.
     6: A263859: Triangle read by rows: T(n,k) (n>=1, k>=0) is the number 
of posets with n elements and rank k (or depth k+1).
     7: A316978: Number of factorizations of n into factors > 1 with no 
equivalent primes.
     8: A319559: Number of non-isomorphic T_0 set systems of weight n.
     9: A326939: Number of T_0 sets of subsets of {1..n} that cover all n 
vertices.
    10: A326943: Number of T_0 sets of subsets of {1..n} that cover all n 
vertices and are closed under intersection.
    11: A326944: Number of T_0 sets of subsets of {1..n} that cover all n 
vertices, contain {}, and are closed under intersection.
    12: A326947: BII-numbers of T_0 set-systems.
**********************************************************************
1 item had failures:
   1 of  26 in sage.databases.oeis
    5 webbrowser tests not run
    0 tests not run because we ran out of time
    [266 tests, 1 failure, 60.52 s]




sage -t --long src/sage/combinat/designs/ext_rep.py
**********************************************************************
File "src/sage/combinat/designs/ext_rep.py", line 556, in 
sage.combinat.designs.ext_rep.open_extrep_url
Failed example:
    s = 
ext_rep.designs_from_XML_url("http://designtheory.org/database/v-b-k/v3-b6-k2.icgsa.txt.bz2";)
 
# optional - internet
Exception raised:
    Traceback (most recent call last):
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py",
 
line 681, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py",
 
line 1105, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.combinat.designs.ext_rep.open_extrep_url[7]>", 
line 1, in <module>
        s = 
ext_rep.designs_from_XML_url("http://designtheory.org/database/v-b-k/v3-b6-k2.icgsa.txt.bz2";)
 
# optional - internet
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/combinat/designs/ext_rep.py",
 
line 1062, in designs_from_XML_url
        s = open_extrep_url(url)
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/combinat/designs/ext_rep.py",
 
line 559, in open_extrep_url
        f = urlopen(url)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 
154, in urlopen
        return opener.open(url, data, timeout)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 
429, in open
        response = self._open(req, data)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 
447, in _open
        '_open', req)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 
407, in _call_chain
        result = func(*args)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 
1228, in http_open
        return self.do_open(httplib.HTTPConnection, req)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 
1201, in do_open
        r = h.getresponse(buffering=True)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/httplib.py", line 
1121, in getresponse
        response.begin()
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/httplib.py", line 
438, in begin
        version, status, reason = self._read_status()
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/httplib.py", line 
394, in _read_status
        line = self.fp.readline(_MAXLINE + 1)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/socket.py", line 
482, in readline
        data = self._sock.recv(self._rbufsize)
    error: [Errno 104] Connection reset by peer
**********************************************************************
1 item had failures:
   1 of   9 in sage.combinat.designs.ext_rep.open_extrep_url
    0 tests not run because we ran out of time
    [102 tests, 1 failure, 4.51 s]

sage -t --long src/sage/databases/findstat.py
**********************************************************************
File "src/sage/databases/findstat.py", line 107, in sage.databases.findstat
Failed example:
    r = findstat(Permutations, lambda pi: pi.saliances()[0]); r           # 
optional -- internet
Exception raised:
    Traceback (most recent call last):
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py",
 
line 681, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py",
 
line 1105, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.databases.findstat[7]>", line 1, in <module>
        r = findstat(Permutations, lambda pi: pi.saliances()[Integer(0)]); 
r           # optional -- internet
      File "sage/misc/lazy_import.pyx", line 354, in 
sage.misc.lazy_import.LazyImport.__call__ 
(build/cythonized/sage/misc/lazy_import.c:3697)
        return self.get_object()(*args, **kwds)
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/databases/findstat.py",
 
line 659, in __call__
        depth=depth)._find_by_values(max_values=max_values)
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/databases/findstat.py",
 
line 1076, in _find_by_values
        response = urlopen(request)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 
154, in urlopen
        return opener.open(url, data, timeout)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 
435, in open
        response = meth(req, response)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 
548, in http_response
        'http', request, response, code, msg, hdrs)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 
473, in error
        return self._call_chain(*args)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 
407, in _call_chain
        result = func(*args)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 
556, in http_error_default
        raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
    HTTPError: HTTP Error 502: Proxy Error
**********************************************************************
File "src/sage/databases/findstat.py", line 110, in sage.databases.findstat
Failed example:
    (s, list_f, quality) = next((a,b,c) for a,b,c in r if a.id() == 51)   # 
optional -- internet
Exception raised:
    Traceback (most recent call last):
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py",
 
line 681, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py",
 
line 1105, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.databases.findstat[8]>", line 1, in <module>
        (s, list_f, quality) = next((a,b,c) for a,b,c in r if a.id() == 
Integer(51))   # optional -- internet
    StopIteration
**********************************************************************
File "src/sage/databases/findstat.py", line 123, in sage.databases.findstat
Failed example:
    print(s.description())                                                # 
optional -- internet
Expected:
    The size of the left subtree of a binary tree.
Got:
    The number of nestings of a perfect matching. 
    
    
    This is the number of pairs of edges $((a,b), (c,d))$ such that $a\le 
c\le d\le b$. i.e., the edge $(c,d)$ is nested inside $(a,b)$.
**********************************************************************
File "src/sage/databases/findstat.py", line 126, in sage.databases.findstat
Failed example:
    print(s.code())                                                       # 
optional -- internet
Expected:
    def statistic(T):
        return T[0].node_number()
Got:
    def statistic(x):
        return len(x.nestings())
**********************************************************************
File "src/sage/databases/findstat.py", line 130, in sage.databases.findstat
Failed example:
    print(list_f[0].code() + "\r\n" + list_f[1].code())                   # 
optional -- internet, random
Exception raised:
    Traceback (most recent call last):
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py",
 
line 681, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py",
 
line 1105, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.databases.findstat[12]>", line 1, in <module>
        print(list_f[Integer(0)].code() + "\r\n" + 
list_f[Integer(1)].code())                   # optional -- internet, random
    IndexError: list index out of range
**********************************************************************
File "src/sage/databases/findstat.py", line 805, in 
sage.databases.findstat.FindStatStatistic.__init__
Failed example:
    FindStatStatistic(1)._find_by_id()                            # 
optional -- internet
Expected:
    St000001: The number of ways to write a permutation as a minimal length 
product of simple transpositions.
Got:
    St000001: The number of reduced words for a permutation.
**********************************************************************
File "src/sage/databases/findstat.py", line 903, in 
sage.databases.findstat.FindStatStatistic.__eq__
Failed example:
    r1 = findstat(Permutations(5), lambda pi: pi.saliances()[0], depth=0)  
# optional -- internet
Exception raised:
    Traceback (most recent call last):
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py",
 
line 681, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py",
 
line 1105, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.databases.findstat.FindStatStatistic.__eq__[1]>", 
line 1, in <module>
        r1 = findstat(Permutations(Integer(5)), lambda pi: 
pi.saliances()[Integer(0)], depth=Integer(0))  # optional -- internet
      File "sage/misc/lazy_import.pyx", line 354, in 
sage.misc.lazy_import.LazyImport.__call__ 
(build/cythonized/sage/misc/lazy_import.c:3697)
        return self.get_object()(*args, **kwds)
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/databases/findstat.py",
 
line 659, in __call__
        depth=depth)._find_by_values(max_values=max_values)
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/databases/findstat.py",
 
line 1082, in _find_by_values
        raise IOError("FindStat did not answer with a json response: %s" %e)
    IOError: FindStat did not answer with a json response: No JSON object 
could be decoded
**********************************************************************
File "src/sage/databases/findstat.py", line 904, in 
sage.databases.findstat.FindStatStatistic.__eq__
Failed example:
    r2 = findstat(Permutations(6), lambda pi: pi.saliances()[0], depth=0)  
# optional -- internet
Exception raised:
    Traceback (most recent call last):
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py",
 
line 681, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py",
 
line 1105, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.databases.findstat.FindStatStatistic.__eq__[2]>", 
line 1, in <module>
        r2 = findstat(Permutations(Integer(6)), lambda pi: 
pi.saliances()[Integer(0)], depth=Integer(0))  # optional -- internet
      File "sage/misc/lazy_import.pyx", line 354, in 
sage.misc.lazy_import.LazyImport.__call__ 
(build/cythonized/sage/misc/lazy_import.c:3697)
        return self.get_object()(*args, **kwds)
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/databases/findstat.py",
 
line 659, in __call__
        depth=depth)._find_by_values(max_values=max_values)
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/databases/findstat.py",
 
line 1082, in _find_by_values
        raise IOError("FindStat did not answer with a json response: %s" %e)
    IOError: FindStat did not answer with a json response: No JSON object 
could be decoded
**********************************************************************
File "src/sage/databases/findstat.py", line 905, in 
sage.databases.findstat.FindStatStatistic.__eq__
Failed example:
    r1 == r2                                                      # 
optional -- internet
Exception raised:
    Traceback (most recent call last):
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py",
 
line 681, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py",
 
line 1105, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.databases.findstat.FindStatStatistic.__eq__[3]>", 
line 1, in <module>
        r1 == r2                                                      # 
optional -- internet
    NameError: name 'r1' is not defined
**********************************************************************
File "src/sage/databases/findstat.py", line 1286, in 
sage.databases.findstat.FindStatStatistic.first_terms
Failed example:
    r = findstat({d: randint(1,1000) for d in DyckWords(4)}); r   # 
optional -- internet
Exception raised:
    Traceback (most recent call last):
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py",
 
line 681, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py",
 
line 1105, in compile_and_execute
        exec(compiled, globs)
      File "<doctest 
sage.databases.findstat.FindStatStatistic.first_terms[1]>", line 1, in 
<module>
        r = findstat({d: randint(Integer(1),Integer(1000)) for d in 
DyckWords(Integer(4))}); r   # optional -- internet
      File "sage/misc/lazy_import.pyx", line 354, in 
sage.misc.lazy_import.LazyImport.__call__ 
(build/cythonized/sage/misc/lazy_import.c:3697)
        return self.get_object()(*args, **kwds)
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/databases/findstat.py",
 
line 632, in __call__
        return query_by_dict(query_1)
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/databases/findstat.py",
 
line 550, in query_by_dict
        depth=depth)._find_by_values(max_values=max_values)
      File 
"/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/databases/findstat.py",
 
line 1082, in _find_by_values
        raise IOError("FindStat did not answer with a json response: %s" %e)
    IOError: FindStat did not answer with a json response: No JSON object 
could be decoded

[...]

**********************************************************************
Tests run before process (pid=21523) timed out:
sage: findstat ## line 21 ##
The Combinatorial Statistic Finder (http://www.findstat.org/)
sage: PM = PerfectMatchings ## line 39 ##

[...]

sage: m = findstat("Permutations", lambda pi: pi.length())[1][1][0] # 
optional -- internet ## line 2851 ##
sage: m.name()                                                      # 
optional -- internet ## line 2852 ##
sage: sig_on_count() # check sig_on/off pairings (virtual doctest) ## line 
2854 ##
0
sage: m = findstat("Permutations", lambda pi: pi.length())[1][1][0] # 
optional -- internet ## line 2867 ##

-- 
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 sage-release+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-release/8fbac90e-78d6-4fb2-9048-a19698c4c366%40googlegroups.com.

Reply via email to