Changes between Initial Version and Version 2 of Ticket #34731


Ignore:
Timestamp:
Jul 21, 2023, 1:44:42 PM (17 months ago)
Author:
Michel Alexandre Salim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34731

    • Property Owner changed from nobody to Michel Alexandre Salim
    • Property Status newassigned
  • Ticket #34731 – Description

    initial v2  
    11Python 3.12, shipping in the upcoming Fedora 39, finally removed the deprecated `assertEquals` in favor of `assertEqual`. The Django test suite mostly use the latter already, but there is one occurence of the former left. It should be converted.
     2
     3Test failure on Python 3.12:
     4
     5
     6{{{
     7======================================================================                                                             
     8ERROR: test_condition_with_func_and_lookup_outside_relation_name (filtered_relation.tests.FilteredRelationTests.test_condition_with_
     9func_and_lookup_outside_relation_name)                                                                                             
     10----------------------------------------------------------------------                                                             
     11Traceback (most recent call last):                                                                                                 
     12  File "/home/michel/src/github/django/django/tests/filtered_relation/tests.py", line 652, in test_condition_with_func_and_lookup_ou
     13tside_relation_name
     14    self.assertEquals(qs.count(), 1)                                                                                               
     15    ^^^^^^^^^^^^^^^^^                                                                                                               
     16AttributeError: 'FilteredRelationTests' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
     17
     18}}}
Back to Top