[Python-modules-team] Bug#948506: python-future ftbfs with 3.8

Matthias Klose doko at debian.org
Thu Jan 9 15:15:04 GMT 2020


Package: src:python-future
Version: 0.16.0-1
Severity: serious
Tags: sid bullseye

python-future ftbfs with 3.8. There's a new upstream, however I didn't check it.

[...]
Traceback:
tests/test_future/test_urllibnet.py:13: in <module>
    import future.moves.urllib.request as urllib_request
future/moves/urllib/request.py:9: in <module>
    from urllib.request import (getproxies,
E   ImportError: cannot import name 'splitattr' from 'urllib.request'
(/usr/lib/python3.8/urllib/request.py)
=============================== warnings summary ===============================
tests/test_future/test_backports.py:13
tests/test_future/test_backports.py:13

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/tests/test_future/test_backports.py:13:
DeprecationWarning: Using or importing the ABCs from 'collections' instead of
from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop
working
    from collections import Mapping, MutableMapping

tests/test_future/test_builtins.py:267

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/tests/test_future/test_builtins.py:267:
DeprecationWarning: invalid escape sequence \u
    (str(b'\u0663\u0661\u0664 ','raw-unicode-escape'), 314),

tests/test_future/test_builtins.py:289

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/tests/test_future/test_builtins.py:289:
DeprecationWarning: invalid escape sequence \u
    (str(b'\u0663\u0661\u0664 ','raw-unicode-escape'), 314),

future/backports/test/support.py:1977

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/future/backports/test/support.py:1977:
DeprecationWarning: invalid escape sequence \d
    m = re.match("2.6.(\d{1,2})", kernel_version)

tests/test_future/test_htmlparser.py:685

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/tests/test_future/test_htmlparser.py:685:
DeprecationWarning: invalid escape sequence \=
    "<a $><b $=%><c \=/>",

future/backports/html/parser.py:31

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/future/backports/html/parser.py:31:
DeprecationWarning: invalid escape sequence \s
    tagfind = re.compile('([a-zA-Z][-.a-zA-Z0-9:_]*)(?:\s|/(?!>))*')

future/backports/html/parser.py:79

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/future/backports/html/parser.py:79:
DeprecationWarning: invalid escape sequence \s
    endtagfind = re.compile('</\s*([a-zA-Z][-.a-zA-Z0-9:_]*)\s*>')

tests/test_future/test_http_cookiejar.py:1034

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/tests/test_future/test_http_cookiejar.py:1034:
DeprecationWarning: invalid escape sequence \$
    self.assertRegex(h, "\$Port([^=]|$)",

tests/test_future/test_http_cookiejar.py:1373

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/tests/test_future/test_http_cookiejar.py:1373:
DeprecationWarning: invalid escape sequence \s
    '\s*\$Path="\/acme"')

tests/test_future/test_http_cookiejar.py:1375

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/tests/test_future/test_http_cookiejar.py:1375:
DeprecationWarning: invalid escape sequence \s
    '\s*\$Path="\/acme"')

future/backports/http/client.py:1

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/future/backports/http/client.py:1:
DeprecationWarning: invalid escape sequence \_
    """HTTP/1.1 client library

future/backports/email/feedparser.py:37

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/future/backports/email/feedparser.py:37:
DeprecationWarning: invalid escape sequence \Z
    NLCRE_eol = re.compile('(\r\n|\r|\n)\Z')

future/backports/email/utils.py:68

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/future/backports/email/utils.py:68:
DeprecationWarning: invalid escape sequence \A
    '([^\ud800-\udbff]|\A)[\udc00-\udfff]([^\udc00-\udfff]|\Z)').search

future/backports/urllib/parse.py:957

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/future/backports/urllib/parse.py:957:
DeprecationWarning: invalid escape sequence \?
    _queryprog = re.compile('^(.*)\?([^?]*)$')

future/backports/http/cookiejar.py:211

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/future/backports/http/cookiejar.py:211:
DeprecationWarning: invalid escape sequence \d
    "(\d\d\d\d) (\d\d):(\d\d):(\d\d) GMT$", re.ASCII)

future/backports/http/cookiejar.py:288

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/future/backports/http/cookiejar.py:288:
DeprecationWarning: invalid escape sequence \d
    """^

future/backports/http/cookiejar.py:422

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/future/backports/http/cookiejar.py:422:
DeprecationWarning: invalid escape sequence \s
    non_junk, nr_junk_chars = re.subn("^[=\s;]*", "", text)

tests/test_future/test_range.py:9
tests/test_future/test_range.py:9

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/tests/test_future/test_range.py:9:
DeprecationWarning: Using or importing the ABCs from 'collections' instead of
from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop
working
    from collections import Iterator, Sequence

tests/test_future/test_urllib.py:536

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/tests/test_future/test_urllib.py:536:
DeprecationWarning: invalid escape sequence \^
    """Tests for urllib.quote() and urllib.quote_plus()

tests/test_future/test_urllib.py:611

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/tests/test_future/test_urllib.py:611:
DeprecationWarning: invalid escape sequence \^
    should_quote.append('<>#%"{}|\^[]`')

tests/test_future/test_urllib_response.py:11

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/tests/test_future/test_urllib_response.py:11:
PytestCollectionWarning: cannot collect test class 'TestFile' because it has a
__init__ constructor (from:
.pybuild/cpython3_3.8_future/build/tests/test_future/test_urllib_response.py)
    class TestFile(object):

tests/test_future/test_urllib_toplevel.py:551

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/tests/test_future/test_urllib_toplevel.py:551:
DeprecationWarning: invalid escape sequence \^
    """Tests for urllib.quote() and urllib.quote_plus()

tests/test_future/test_urllib_toplevel.py:626

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/tests/test_future/test_urllib_toplevel.py:626:
DeprecationWarning: invalid escape sequence \^
    should_quote.append('<>#%"{}|\^[]`')

past/types/oldstr.py:20
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/past/types/oldstr.py:20:
DeprecationWarning: invalid escape sequence \d
    """

past/types/oldstr.py:5
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/past/types/oldstr.py:5:
DeprecationWarning: Using or importing the ABCs from 'collections' instead of
from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop
working
    from collections import Iterable

past/builtins/misc.py:79
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build/past/builtins/misc.py:79:
DeprecationWarning: 'U' mode is deprecated
    with open(filename, "rbU") as fin:

-- Docs: https://docs.pytest.org/en/latest/warnings.html
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
============= 232 deselected, 28 warnings, 1 error in 2.63 seconds =============
E: pybuild pybuild:341: test: plugin distutils failed with: exit code=2: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_future/build; python3.8 -m pytest -k 'not
urllib and not test_remove_hooks_then_requests and not test_requests_cm'
dh_auto_test: pybuild --test --test-pytest -i python{version} -p "3.8 3.7"
returned exit code 13



More information about the Python-modules-team mailing list