• Bug#1059662: python-django-pgschemas: autopkgtest failure with Python 3

    From Graham Inggs@21:1/5 to All on Fri Dec 29 22:20:01 2023
    Source: python-django-pgschemas
    Version: 0.15.1-1
    Severity: serious
    User: debian-python@lists.debian.org
    Usertags: python3.12

    Hi Maintainer

    python-django-pgschemas' autopkgtests fail with Python 3.12 [1]. I've
    copied what I hope is the relevant part of the log below.

    Regards
    Graham


    [1] https://ci.debian.net/packages/p/python-django-pgschemas/testing/amd64/


    66s =================================== FAILURES ===================================
    66s ______________ TenantFileSystemStorageTestCase.test_base_location ______________
    66s
    66s self = <dpgs_sandbox.tests.test_file_storage.TenantFileSystemStorageTestCase
    testMethod=test_base_location>
    66s
    66s def test_base_location(self):
    66s with SchemaDescriptor.create(schema_name=""):
    66s > self.assertEquals(self.storage.base_location, self.temp_dir + "/")
    66s E AttributeError: 'TenantFileSystemStorageTestCase' object has no
    attribute 'assertEquals'. Did you mean: 'assertEqual'?
    66s
    66s dpgs_sandbox/tests/test_file_storage.py:62: AttributeError
    66s ________________ TenantFileSystemStorageTestCase.test_base_url _________________
    66s
    66s self = <dpgs_sandbox.tests.test_file_storage.TenantFileSystemStorageTestCase
    testMethod=test_base_url>
    66s
    66s def test_base_url(self):
    66s with SchemaDescriptor.create(schema_name=""):
    66s > self.assertEquals(self.storage.base_url, "/base-url/")
    66s E AttributeError: 'TenantFileSystemStorageTestCase' object has no
    attribute 'assertEquals'. Did you mean: 'assertEqual'?
    66s
    66s dpgs_sandbox/tests/test_file_storage.py:73: AttributeError
    66s __________ TenantFileSystemStorageTestCase.test_path_identifier_basic __________
    66s
    66s self = <dpgs_sandbox.tests.test_file_storage.TenantFileSystemStorageTestCase
    testMethod=test_path_identifier_basic>
    66s
    66s def test_path_identifier_basic(self):
    66s with SchemaDescriptor.create(schema_name=""):
    66s > self.assertEquals(self.storage.get_schema_path_identifier(), "")
    66s E AttributeError: 'TenantFileSystemStorageTestCase' object has no
    attribute 'assertEquals'. Did you mean: 'assertEqual'?
    66s
    66s dpgs_sandbox/tests/test_file_storage.py:34: AttributeError
    66s __ TenantFileSystemStorageTestCase.test_path_identifier_function_in_settings
    ___
    66s
    66s self = <dpgs_sandbox.tests.test_file_storage.TenantFileSystemStorageTestCase
    testMethod=test_path_identifier_function_in_settings>
    66s
    66s def test_path_identifier_function_in_settings(self):
    66s if TenantModel is not None:
    66s with override_settings(
    66s PGSCHEMAS_PATHNAME_FUNCTION=lambda tenant: tenant.schema_name + "-custom-pathname"
    66s ):
    66s with TenantModel(schema_name="tenant"):
    66s > self.assertEquals(
    66s self.storage.get_schema_path_identifier(), "tenant-custom-pathname"
    66s )
    66s E AttributeError: 'TenantFileSystemStorageTestCase' object has no
    attribute 'assertEquals'. Did you mean: 'assertEqual'?
    66s
    66s dpgs_sandbox/tests/test_file_storage.py:56: AttributeError
    66s ____ TenantFileSystemStorageTestCase.test_path_identifier_method_in_tenant _____
    66s
    66s self = <dpgs_sandbox.tests.test_file_storage.TenantFileSystemStorageTestCase
    testMethod=test_path_identifier_method_in_tenant>
    66s
    66s def test_path_identifier_method_in_tenant(self):
    66s if TenantModel is not None:
    66s TenantModel.schema_pathname = lambda x: "custom-pathname"
    66s with TenantModel(schema_name="tenant"):
    66s > self.assertEquals(self.storage.get_schema_path_identifier(), "custom-pathname")
    66s E AttributeError: 'TenantFileSystemStorageTestCase' object has no
    attribute 'assertEquals'. Did you mean: 'assertEqual'?
    66s
    66s dpgs_sandbox/tests/test_file_storage.py:47: AttributeError

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sun Jan 21 21:40:02 2024
    Processing control commands:

    tag -1 pending
    Bug #1059662 [src:python-django-pgschemas] python-django-pgschemas: autopkgtest failure with Python 3.12
    Added tag(s) pending.

    --
    1059662: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059662
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael Fladischer@21:1/5 to All on Sun Jan 21 21:40:04 2024
    Control: tag -1 pending

    Hello,

    Bug #1059662 in python-django-pgschemas reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit
    message below and you can check the diff of the fix at:

    https://salsa.debian.org/python-team/packages/python-django-pgschemas/-/commit/e5bbef468b888fa751dc7be35af2a2babbb1ac52

    ------------------------------------------------------------------------
    Add patch to replace assertEquals with assertEqual (Closes: #1059662). ------------------------------------------------------------------------

    (this message was generated automatically)
    --
    Greetings

    https://bugs.debian.org/1059662

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sun Jan 21 22:00:01 2024
    This is a multi-part message in MIME format...

    Your message dated Sun, 21 Jan 2024 20:49:33 +0000
    with message-id <E1rRel3-002m4D-J5@fasolo.debian.org>
    and subject line Bug#1059662: fixed in python-django-pgschemas 0.15.1-2
    has caused the Debian Bug report #1059662,
    regarding python-django-pgschemas: autopkgtest failure with Python 3.12
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1059662: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059662
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 29 Dec 2023 21:10:11 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-5.8 required=4.0 tests=BAYES_00,FROMDEVELOPER,
    RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,
    SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 66; hammy, 137; neutral, 31; spammy,
    0. spammytokens: hammytokens:0.000-+--autopkgtest,
    0.000-+--H*RU:198.252.153.129,
    0.000-+--Hx-spam-relays-external:mx1.riseup.net,
    0.000-+--Hx-spam-relays-external:198.252.153.129,
    0.000-+--U*debian-python
    Return-path: <ginggs@debian.org>
    Received: from mx1.riseup.net ([198.252.153.129]:59574)
    by buxtehude.debian.org with esmtps (TLS1.