On Sun, Feb 25, 2018, at 6:03 PM, Mark Sapiro wrote: > What is the state of the current Postorius, Hyperkitty and > django_mailman3 branches with respect to Python version support. > > I am trying to do some things with Postorius at the moment and with > Python 2 I get import errors, specifically on > > from urllib.error import HTTPError > > which seems to work only in Python 3. > > Are these supposed to be bi-lingual or Python 3 only, or are they just > unstable and not working at the moment? > > My immediate concern is to try to bring > <https://gitlab.com/mailman/postorius/merge_requests/186> up to date. If > I run tox on an unmodified gitlab head, It only runs py35 tests (it > would run py36, but I don't have that installed) and they all fail like > this: > > ERROR: test_middleware_request > (postorius.tests.mailman_api_tests.test_middleware.TestMiddleware) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/var/MM/3/master/postorius/.tox/py35-djangolatest/lib/python3.5/site- > packages/mock/mock.py", > line 1305, in patched > return func(*args, **keywargs) > File > "/var/MM/3/master/postorius/src/postorius/tests/mailman_api_tests/ > test_middleware.py", > line 47, in test_middleware_request > response.context['error']) > File > "/var/MM/3/master/postorius/.tox/py35-djangolatest/lib/python3.5/site- > packages/django/test/utils.py", > line 73, in __getitem__ > raise KeyError(key) > KeyError: 'error' > > > (that from py35-djangolatest, but py35-django111 and py35-django20 have > the same failure and there are no py27 tests defined.
Are you sure you are trying from the git-head of postorius? I can't reproduce this issue in my machine. I also tried it in the docker container used for CI (maxking/mailman-ci-runner), and all the tests seem to passs with python{35,36}-django{111,20,latest}. I also merged a branch this morning in Postorius and the CI passed for it as well. -- Abhilash Raj maxk...@asynchronous.in _______________________________________________ Mailman-Developers mailing list Mailman-Developers@python.org https://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org Security Policy: http://wiki.list.org/x/QIA9