[Pkg-mailman-hackers] Bug#951106: postorius fails autopkg tests with Python 3.8

Matthias Klose doko at debian.org
Tue Feb 11 08:59:10 GMT 2020


Package: src:postorius
Version: 1.3.2-1
Severity: important
Tags: sid bullseye
User: debian-python at lists.debian.org
Usertags: python3.8

postorius fails autopkg tests with Python 3.8:

autopkgtest [06:10:44]: test python3-django-postorius: [-----------------------
Creating test database for alias 'default'...
.....................................x.................x.........................................................................EEEEEEEEEE.EEEEEEEEEE.EE...........................F.....................................................................................................
======================================================================
ERROR: test_domain2_list_index_all_lists
(postorius.tests.mailman_api_tests.test_list_index.DomainFilteringListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 243, in test_domain2_list_index_all_lists
    response = self.client.get2(url)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 743, in
list_index
    return list_index_authenticated(request)
  File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line
21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 707, in
list_index_authenticated
    client.find_lists(user_email,
TypeError: find_lists() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_domain2_list_index_contains_the_lists
(postorius.tests.mailman_api_tests.test_list_index.DomainFilteringListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 233, in test_domain2_list_index_contains_the_lists
    response = self.client.get2(reverse('list_index'))
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 753, in
list_index
    lists = paginate(
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
71, in paginate
    objects = paginator.page(page_num)
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
46, in page
    number = self.validate_number(number)
  File "/usr/lib/python3/dist-packages/django/core/paginator.py", line 48, in
validate_number
    if number > self.num_pages:
  File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in
__get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib/python3/dist-packages/django/core/paginator.py", line 97, in
num_pages
    if self.count == 0 and not self.allow_empty_first_page:
  File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in
__get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
56, in count
    return self.function(count=0, page=1).total_size
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 750, in
_get_list_page
    return client.get_list_page(
TypeError: get_list_page() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_all_lists
(postorius.tests.mailman_api_tests.test_list_index.DomainFilteringListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 93, in test_list_index_all_lists
    response = self.client.get(url)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 743, in
list_index
    return list_index_authenticated(request)
  File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line
21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 707, in
list_index_authenticated
    client.find_lists(user_email,
TypeError: find_lists() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_contains_the_lists
(postorius.tests.mailman_api_tests.test_list_index.DomainFilteringListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 49, in test_list_index_contains_the_lists
    response = self.client.get(reverse('list_index'))
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 753, in
list_index
    lists = paginate(
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
71, in paginate
    objects = paginator.page(page_num)
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
46, in page
    number = self.validate_number(number)
  File "/usr/lib/python3/dist-packages/django/core/paginator.py", line 48, in
validate_number
    if number > self.num_pages:
  File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in
__get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib/python3/dist-packages/django/core/paginator.py", line 97, in
num_pages
    if self.count == 0 and not self.allow_empty_first_page:
  File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in
__get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
56, in count
    return self.function(count=0, page=1).total_size
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 750, in
_get_list_page
    return client.get_list_page(
TypeError: get_list_page() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_moderator_only
(postorius.tests.mailman_api_tests.test_list_index.DomainFilteringListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 135, in test_list_index_moderator_only
    response = self.client.get(url + '?role=moderator')
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 743, in
list_index
    return list_index_authenticated(request)
  File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line
21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 707, in
list_index_authenticated
    client.find_lists(user_email,
TypeError: find_lists() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_multiple_addresses
(postorius.tests.mailman_api_tests.test_list_index.DomainFilteringListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 189, in test_list_index_multiple_addresses
    response = self.client.get(url)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 743, in
list_index
    return list_index_authenticated(request)
  File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line
21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 707, in
list_index_authenticated
    client.find_lists(user_email,
TypeError: find_lists() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_multiple_roles
(postorius.tests.mailman_api_tests.test_list_index.DomainFilteringListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 176, in test_list_index_multiple_roles
    response = self.client.get(url)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 743, in
list_index
    return list_index_authenticated(request)
  File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line
21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 707, in
list_index_authenticated
    client.find_lists(user_email,
TypeError: find_lists() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_only_contains_advertised_lists
(postorius.tests.mailman_api_tests.test_list_index.DomainFilteringListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 61, in test_list_index_only_contains_advertised_lists
    response = self.client.get(reverse('list_index'))
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 753, in
list_index
    lists = paginate(
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
71, in paginate
    objects = paginator.page(page_num)
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
46, in page
    number = self.validate_number(number)
  File "/usr/lib/python3/dist-packages/django/core/paginator.py", line 48, in
validate_number
    if number > self.num_pages:
  File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in
__get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib/python3/dist-packages/django/core/paginator.py", line 97, in
num_pages
    if self.count == 0 and not self.allow_empty_first_page:
  File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in
__get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
56, in count
    return self.function(count=0, page=1).total_size
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 750, in
_get_list_page
    return client.get_list_page(
TypeError: get_list_page() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_owner_only
(postorius.tests.mailman_api_tests.test_list_index.DomainFilteringListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 117, in test_list_index_owner_only
    response = self.client.get(url + '?role=owner')
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 743, in
list_index
    return list_index_authenticated(request)
  File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line
21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 707, in
list_index_authenticated
    client.find_lists(user_email,
TypeError: find_lists() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_pagination
(postorius.tests.mailman_api_tests.test_list_index.DomainFilteringListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 198, in test_list_index_pagination
    response = self.client.get(url)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 753, in
list_index
    lists = paginate(
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
71, in paginate
    objects = paginator.page(page_num)
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
46, in page
    number = self.validate_number(number)
  File "/usr/lib/python3/dist-packages/django/core/paginator.py", line 48, in
validate_number
    if number > self.num_pages:
  File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in
__get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib/python3/dist-packages/django/core/paginator.py", line 97, in
num_pages
    if self.count == 0 and not self.allow_empty_first_page:
  File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in
__get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
56, in count
    return self.function(count=0, page=1).total_size
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 750, in
_get_list_page
    return client.get_list_page(
TypeError: get_list_page() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_subscriber_only
(postorius.tests.mailman_api_tests.test_list_index.DomainFilteringListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 153, in test_list_index_subscriber_only
    response = self.client.get(url + '?role=member')
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 743, in
list_index
    return list_index_authenticated(request)
  File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line
21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 707, in
list_index_authenticated
    client.find_lists(user_email,
TypeError: find_lists() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_unadvertized
(postorius.tests.mailman_api_tests.test_list_index.DomainFilteringListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 83, in test_list_index_unadvertized
    response = self.client.get(url)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 753, in
list_index
    lists = paginate(
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
71, in paginate
    objects = paginator.page(page_num)
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
46, in page
    number = self.validate_number(number)
  File "/usr/lib/python3/dist-packages/django/core/paginator.py", line 48, in
validate_number
    if number > self.num_pages:
  File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in
__get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib/python3/dist-packages/django/core/paginator.py", line 97, in
num_pages
    if self.count == 0 and not self.allow_empty_first_page:
  File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in
__get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
56, in count
    return self.function(count=0, page=1).total_size
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 750, in
_get_list_page
    return client.get_list_page(
TypeError: get_list_page() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_all_lists
(postorius.tests.mailman_api_tests.test_list_index.ListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 93, in test_list_index_all_lists
    response = self.client.get(url)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 743, in
list_index
    return list_index_authenticated(request)
  File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line
21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 707, in
list_index_authenticated
    client.find_lists(user_email,
TypeError: find_lists() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_contains_the_lists
(postorius.tests.mailman_api_tests.test_list_index.ListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 49, in test_list_index_contains_the_lists
    response = self.client.get(reverse('list_index'))
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 753, in
list_index
    lists = paginate(
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
71, in paginate
    objects = paginator.page(page_num)
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
46, in page
    number = self.validate_number(number)
  File "/usr/lib/python3/dist-packages/django/core/paginator.py", line 48, in
validate_number
    if number > self.num_pages:
  File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in
__get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib/python3/dist-packages/django/core/paginator.py", line 97, in
num_pages
    if self.count == 0 and not self.allow_empty_first_page:
  File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in
__get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
56, in count
    return self.function(count=0, page=1).total_size
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 750, in
_get_list_page
    return client.get_list_page(
TypeError: get_list_page() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_moderator_only
(postorius.tests.mailman_api_tests.test_list_index.ListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 135, in test_list_index_moderator_only
    response = self.client.get(url + '?role=moderator')
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 743, in
list_index
    return list_index_authenticated(request)
  File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line
21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 707, in
list_index_authenticated
    client.find_lists(user_email,
TypeError: find_lists() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_multiple_addresses
(postorius.tests.mailman_api_tests.test_list_index.ListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 189, in test_list_index_multiple_addresses
    response = self.client.get(url)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 743, in
list_index
    return list_index_authenticated(request)
  File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line
21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 707, in
list_index_authenticated
    client.find_lists(user_email,
TypeError: find_lists() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_multiple_roles
(postorius.tests.mailman_api_tests.test_list_index.ListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 176, in test_list_index_multiple_roles
    response = self.client.get(url)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 743, in
list_index
    return list_index_authenticated(request)
  File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line
21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 707, in
list_index_authenticated
    client.find_lists(user_email,
TypeError: find_lists() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_only_contains_advertised_lists
(postorius.tests.mailman_api_tests.test_list_index.ListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 61, in test_list_index_only_contains_advertised_lists
    response = self.client.get(reverse('list_index'))
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 753, in
list_index
    lists = paginate(
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
71, in paginate
    objects = paginator.page(page_num)
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
46, in page
    number = self.validate_number(number)
  File "/usr/lib/python3/dist-packages/django/core/paginator.py", line 48, in
validate_number
    if number > self.num_pages:
  File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in
__get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib/python3/dist-packages/django/core/paginator.py", line 97, in
num_pages
    if self.count == 0 and not self.allow_empty_first_page:
  File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in
__get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
56, in count
    return self.function(count=0, page=1).total_size
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 750, in
_get_list_page
    return client.get_list_page(
TypeError: get_list_page() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_owner_only
(postorius.tests.mailman_api_tests.test_list_index.ListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 117, in test_list_index_owner_only
    response = self.client.get(url + '?role=owner')
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 743, in
list_index
    return list_index_authenticated(request)
  File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line
21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 707, in
list_index_authenticated
    client.find_lists(user_email,
TypeError: find_lists() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_pagination
(postorius.tests.mailman_api_tests.test_list_index.ListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 198, in test_list_index_pagination
    response = self.client.get(url)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 753, in
list_index
    lists = paginate(
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
71, in paginate
    objects = paginator.page(page_num)
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
46, in page
    number = self.validate_number(number)
  File "/usr/lib/python3/dist-packages/django/core/paginator.py", line 48, in
validate_number
    if number > self.num_pages:
  File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in
__get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib/python3/dist-packages/django/core/paginator.py", line 97, in
num_pages
    if self.count == 0 and not self.allow_empty_first_page:
  File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in
__get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
56, in count
    return self.function(count=0, page=1).total_size
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 750, in
_get_list_page
    return client.get_list_page(
TypeError: get_list_page() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_subscriber_only
(postorius.tests.mailman_api_tests.test_list_index.ListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 153, in test_list_index_subscriber_only
    response = self.client.get(url + '?role=member')
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 743, in
list_index
    return list_index_authenticated(request)
  File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line
21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 707, in
list_index_authenticated
    client.find_lists(user_email,
TypeError: find_lists() got an unexpected keyword argument 'mail_host'

======================================================================
ERROR: test_list_index_unadvertized
(postorius.tests.mailman_api_tests.test_list_index.ListIndexPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_index.py",
line 83, in test_list_index_unadvertized
    response = self.client.get(url)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 535, in get
    response = super().get(path, data=data, secure=secure, **extra)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 345, in get
    return self.generic('GET', path, secure=secure, **{
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 422, in generic
    return self.request(**r)
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 503, in request
    raise exc_value
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line
34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115,
in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113,
in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 753, in
list_index
    lists = paginate(
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
71, in paginate
    objects = paginator.page(page_num)
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
46, in page
    number = self.validate_number(number)
  File "/usr/lib/python3/dist-packages/django/core/paginator.py", line 48, in
validate_number
    if number > self.num_pages:
  File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in
__get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib/python3/dist-packages/django/core/paginator.py", line 97, in
num_pages
    if self.count == 0 and not self.allow_empty_first_page:
  File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in
__get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib/python3/dist-packages/django_mailman3/lib/paginator.py", line
56, in count
    return self.function(count=0, page=1).total_size
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 750, in
_get_list_page
    return client.get_list_page(
TypeError: get_list_page() got an unexpected keyword argument 'mail_host'

======================================================================
FAIL: test_duplicate_listname_validation
(postorius.tests.mailman_api_tests.test_list_new.ListCreationTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/postorius/tests/mailman_api_tests/test_list_new.py",
line 57, in test_duplicate_listname_validation
    self.assertContains(response, 'Mailing List already exists')
  File "/usr/lib/python3/dist-packages/django/test/testcases.py", line 454, in
assertContains
    self.assertTrue(real_count != 0, msg_prefix + "Couldn't find %s in response"
% text_repr)
AssertionError: False is not true : Couldn't find 'Mailing List already exists'
in response

----------------------------------------------------------------------
Ran 282 tests in 238.012s

FAILED (failures=1, errors=22, expected failures=2)
Destroying test database for alias 'default'...
System check identified no issues (0 silenced).


autopkgtest [06:15:21]: test python3-django-postorius: -----------------------]



More information about the Pkg-mailman-hackers mailing list