#34934: Made EmailValidator.__eq__() ignore domain_allowlist ordering.
------------------------------------------------+------------------------
               Reporter:  ksg                   |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  Core (Other)          |        Version:  dev
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  1
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 Just like in the case mentioned here:
 https://code.djangoproject.com/ticket/34920.
 EmailValidator's eq() method also doesn't correctly handle the comparison
 of domain_allowlist when the order of elements in the arrays is different.

 {{{
         self.assertEqual(
             EmailValidator(allowlist=["127.0.0.1", "localhost"]),
             EmailValidator(allowlist=["localhost", "127.0.0.1"]),
         )
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34934>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018b74e9cf24-27cea59b-1e8f-400c-acd7-aed719d30d5e-000000%40eu-central-1.amazonses.com.

Reply via email to