[Pkg-linaro-lava-devel] Bug#995465: django-restricted-resource: autopkgtest fails for python-django >= 3

Carsten Schoenert c.schoenert at t-online.de
Fri Oct 1 15:51:51 BST 2021


Source: django-restricted-resource
Version: 2016.8-3
Severity: serious
Usertags: breaks needs-update
Control: found -1 python-django/2:3.2.7-4
Control: found -1 django-restricted-resource/2016.8-3

Dear Maintainer(s),

the latest upload of python-django is breaking the autopkgtest for
django-restricted-resource but was succeeding previously.

The broken autopkgtest is blocking python-django from migrating to
testing.

The relevant part of the broken testing is this:

======================================================================
ERROR: test_clean_is_okay_when_just_group_set (django_restricted_resource.tests.ResourceCleanTests)
test_clean_is_okay_when_just_group_set (django_restricted_resource.tests.ResourceCleanTests)
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/tmp/autopkgtest-lxc.r7b2wyms/downtmp/build.SBo/src/django_restricted_resource/test_project/../../django_restricted_resource/tests.py", line 64, in test_clean_is_okay_when_just_group_set
    resource = RestrictedResource(group=group)
  File "/usr/lib/python3/dist-packages/django/db/models/base.py", line 413, in __init__
    raise TypeError('Abstract models cannot be instantiated.')
TypeError: Abstract models cannot be instantiated.


======================================================================
ERROR: test_clean_is_okay_when_just_user_set (django_restricted_resource.tests.ResourceCleanTests)
test_clean_is_okay_when_just_user_set (django_restricted_resource.tests.ResourceCleanTests)
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/tmp/autopkgtest-lxc.r7b2wyms/downtmp/build.SBo/src/django_restricted_resource/test_project/../../django_restricted_resource/tests.py", line 59, in test_clean_is_okay_when_just_user_set
    resource = RestrictedResource(user=user)
  File "/usr/lib/python3/dist-packages/django/db/models/base.py", line 413, in __init__
    raise TypeError('Abstract models cannot be instantiated.')
TypeError: Abstract models cannot be instantiated.


======================================================================
ERROR: test_clean_raises_exception_when_both_user_and_group_is_set (django_restricted_resource.tests.ResourceCleanTests)
test_clean_raises_exception_when_both_user_and_group_is_set (django_restricted_resource.tests.ResourceCleanTests)
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/tmp/autopkgtest-lxc.r7b2wyms/downtmp/build.SBo/src/django_restricted_resource/test_project/../../django_restricted_resource/tests.py", line 54, in test_clean_raises_exception_when_both_user_and_group_is_set
    resource = RestrictedResource(user=user, group=group)
  File "/usr/lib/python3/dist-packages/django/db/models/base.py", line 413, in __init__
    raise TypeError('Abstract models cannot be instantiated.')
TypeError: Abstract models cannot be instantiated.

======================================================================
ERROR: test_clean_raises_exception_when_owner_is_not_set (django_restricted_resource.tests.ResourceCleanTests)
test_clean_raises_exception_when_owner_is_not_set (django_restricted_resource.tests.ResourceCleanTests)
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/tmp/autopkgtest-lxc.r7b2wyms/downtmp/build.SBo/src/django_restricted_resource/test_project/../../django_restricted_resource/tests.py", line 48, in test_clean_raises_exception_when_owner_is_not_set
    resource = RestrictedResource()
  File "/usr/lib/python3/dist-packages/django/db/models/base.py", line 413, in __init__
    raise TypeError('Abstract models cannot be instantiated.')
TypeError: Abstract models cannot be instantiated.


----------------------------------------------------------------------
Ran 172 tests in 2.745s

The full log is visible under

https://ci.debian.net/data/autopkgtest/unstable/amd64/d/django-restricted-resource/15453285/log.gz

Regards
Carsten



More information about the Pkg-linaro-lava-devel mailing list