Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #28760: py3: internet str vs bytes doctests failures
{{{ sage -t --optional=sage,optional,external src/sage/coding/databases.py }}} gives {{{ ---------------------------------------------------------------------- sage -t src/sage/coding/databases.py # 2 doctests failed ---------------------------------------------------------------------- }}} with errors of that kind: {{{ sage -t src/sage/coding/databases.py ********************************************************************** File "src/sage/coding/databases.py", line 137, in sage.coding.databases.best_linear_code_in_codetables_dot_de Failed example: L = codes.databases.best_linear_code_in_codetables_dot_de(72, 36, GF(2)) # optional - internet Exception raised: Traceback (most recent call last): File "/home/slabbe/GitBox/sage/local/lib/python3.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/python3.7/site- packages/sage/doctest/forker.py", line 1123, in compile_and_execute exec(compiled, globs) File "<doctest sage.coding.databases.best_linear_code_in_codetables_dot_de[0]>", line 1, in <module> L = codes.databases.best_linear_code_in_codetables_dot_de(Integer(72), Integer(36), GF(Integer(2))) # optional - internet File "/home/slabbe/GitBox/sage/local/lib/python3.7/site- packages/sage/coding/databases.py", line 174, in best_linear_code_in_codetables_dot_de i = s.find("<PRE>") TypeError: argument should be integer or bytes-like object, not 'str' ********************************************************************** }}} URL: https://trac.sagemath.org/28760 Reported by: slabbe Ticket author(s): Frédéric Chapoton Reviewer(s): Sébastien Labbé
- Loading branch information