Changes between Initial Version and Version 4 of Ticket #26592


Ignore:
Timestamp:
11/20/18 08:17:02 (4 years ago)
Author:
slabbe
Comment:

Ok, I updated the goal of this ticket as suggested.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26592

    • Property Component changed from doctest coverage to python3
    • Property Summary changed from internet doctest failing in combinat/designs [SSL: UNKNOWN_PROTOCOL] to py3: combinat/designs: bytes-like object is required, not 'str'
  • Ticket #26592 – Description

    initial v4  
    1 With 8.5.beta1, the command
    2 {{{
    3 sage -t --long --optional=sage,internet src/sage/combinat/designs/design_catalog.py src/sage/combinat/designs/covering_design.py
    4 }}}
    5 
    6 gives:
    71
    82{{{
    9 Doctesting 2 files.
    10 sage -t --long src/sage/combinat/designs/design_catalog.py
    11 **********************************************************************
    12 File "src/sage/combinat/designs/design_catalog.py", line 22, in sage.combinat.designs.design_catalog
    13 Failed example:
    14     C = designs.best_known_covering_design_from_LJCR(7, 3, 2)   # optional - internet
    15 Exception raised:
    16     Traceback (most recent call last):
    17       File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 671, in _run
    18         self.compile_and_execute(example, compiler, test.globs)
    19       File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1086, in compile_and_execute
    20         exec(compiled, globs)
    21       File "<doctest sage.combinat.designs.design_catalog[1]>", line 1, in <module>
    22         C = designs.best_known_covering_design_from_LJCR(Integer(7), Integer(3), Integer(2))   # optional - internet
    23       File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/combinat/designs/covering_design.py", line 503, in best_known_covering_design_www
    24         f = urlopen(url)
    25       File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 154, in urlopen
    26         return opener.open(url, data, timeout)
    27       File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 429, in open
    28         response = self._open(req, data)
    29       File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 447, in _open
    30         '_open', req)
    31       File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 407, in _call_chain
    32         result = func(*args)
    33       File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 1241, in https_open
    34         context=self._context)
    35       File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 1198, in do_open
    36         raise URLError(err)
    37     URLError: <urlopen error [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:726)>
    38 **********************************************************************
    39 File "src/sage/combinat/designs/design_catalog.py", line 23, in sage.combinat.designs.design_catalog
    40 Failed example:
    41     C                            # optional - internet
    42 Exception raised:
    43     Traceback (most recent call last):
    44       File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 671, in _run
    45         self.compile_and_execute(example, compiler, test.globs)
    46       File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1086, in compile_and_execute
    47         exec(compiled, globs)
    48       File "<doctest sage.combinat.designs.design_catalog[2]>", line 1, in <module>
    49         C                            # optional - internet
    50     NameError: name 'C' is not defined
    51 **********************************************************************
    52 File "src/sage/combinat/designs/design_catalog.py", line 28, in sage.combinat.designs.design_catalog
    53 Failed example:
    54     C.incidence_structure()      # optional - internet
    55 Exception raised:
    56     Traceback (most recent call last):
    57       File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 671, in _run
    58         self.compile_and_execute(example, compiler, test.globs)
    59       File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1086, in compile_and_execute
    60         exec(compiled, globs)
    61       File "<doctest sage.combinat.designs.design_catalog[3]>", line 1, in <module>
    62         C.incidence_structure()      # optional - internet
    63     NameError: name 'C' is not defined
    64 **********************************************************************
    65 1 item had failures:
    66    3 of   5 in sage.combinat.designs.design_catalog
    67     [4 tests, 3 failures, 0.34 s]
    68 sage -t --long src/sage/combinat/designs/covering_design.py
    69 **********************************************************************
    70 File "src/sage/combinat/designs/covering_design.py", line 473, in sage.combinat.designs.covering_design.best_known_covering_design_www
    71 Failed example:
    72     C = best_known_covering_design_www(7, 3, 2)   # optional - internet
    73 Exception raised:
    74     Traceback (most recent call last):
    75       File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 671, in _run
    76         self.compile_and_execute(example, compiler, test.globs)
    77       File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1086, in compile_and_execute
    78         exec(compiled, globs)
    79       File "<doctest sage.combinat.designs.covering_design.best_known_covering_design_www[1]>", line 1, in <module>
    80         C = best_known_covering_design_www(Integer(7), Integer(3), Integer(2))   # optional - internet
    81       File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/combinat/designs/covering_design.py", line 503, in best_known_covering_design_www
    82         f = urlopen(url)
    83       File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 154, in urlopen
    84         return opener.open(url, data, timeout)
    85       File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 429, in open
    86         response = self._open(req, data)
    87       File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 447, in _open
    88         '_open', req)
    89       File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 407, in _call_chain
    90         result = func(*args)
    91       File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 1241, in https_open
    92         context=self._context)
    93       File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 1198, in do_open
    94         raise URLError(err)
    95     URLError: <urlopen error [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:726)>
    96 **********************************************************************
    97 File "src/sage/combinat/designs/covering_design.py", line 474, in sage.combinat.designs.covering_design.best_known_covering_design_www
    98 Failed example:
    99     print(C)                                     # optional - internet
    100 Exception raised:
    101     Traceback (most recent call last):
    102       File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 671, in _run
    103         self.compile_and_execute(example, compiler, test.globs)
    104       File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1086, in compile_and_execute
    105         exec(compiled, globs)
    106       File "<doctest sage.combinat.designs.covering_design.best_known_covering_design_www[2]>", line 1, in <module>
    107         print(C)                                     # optional - internet
    108     NameError: name 'C' is not defined
    109 **********************************************************************
    110 1 item had failures:
    111    2 of   4 in sage.combinat.designs.covering_design.best_known_covering_design_www
    112     [49 tests, 2 failures, 0.37 s]
    113 ----------------------------------------------------------------------
    114 sage -t --long src/sage/combinat/designs/design_catalog.py  # 3 doctests failed
    115 sage -t --long src/sage/combinat/designs/covering_design.py  # 2 doctests failed
    116 ----------------------------------------------------------------------
    117 Total time for all tests: 1.0 seconds
    118     cpu time: 0.0 seconds
    119     cumulative wall time: 0.7 seconds
     3sage: print(version())
     4SageMath version 8.5.beta1, Release Date: 2018-10-27
     5sage: print(sys.version)
     63.6.6 (default, Oct 27 2018, 01:34:38)
     7[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)]
     8sage: C = designs.best_known_covering_design_from_LJCR(7, 3, 2)
     9---------------------------------------------------------------------------
     10TypeError                                 Traceback (most recent call last)
     11<ipython-input-1-a3d9f9e592f1> in <module>()
     12----> 1 C = designs.best_known_covering_design_from_LJCR(Integer(7), Integer(3), Integer(2))
     13
     14/opt/s/sage/local/lib/python3.6/site-packages/sage/combinat/designs/covering_design.py in best_known_covering_design_www(v, k, t, verbose)
     15    505     f.close()
     16    506
     17--> 507     if 'covering not in database' in s:   #not found
     18    508         str = "no (%d,%d,%d) covering design in database\n"%(v,k,t)
     19    509         raise ValueError(str)
     20
     21TypeError: a bytes-like object is required, not 'str'
    12022}}}