          )
  
          # Regression test for #18969
          self.assertQuerysetEqual(
                  Party.objects.filter(when__year=1), [
                          datetime.date(1, 3, 3),
                  ],
                  attrgetter("when")
          )
          self.assertQuerysetEqual(
                  Party.objects.filter(when__year='1'), [
                          datetime.date(1, 3, 3),
                  ],
 
</s> remove                 Party.objects.filter(when__year='1'), [
                        datetime.date(1, 3, 3),
                ],
                attrgetter("when")
 </s> add             Party.objects.filter(when__year='1'), [
                datetime.date(1, 3, 3),
            ],
            attrgetter("when") </s> remove                 "<Child4: d1>",
                "<Child4: f1>"
 </s> add             "<Child4: d1>",
            "<Child4: f1>" </s> remove                 Session.objects.annotate(dt=Min('events__dt')).order_by('dt'),
                [morning_min_dt, afternoon_min_dt],
                transform=lambda d: d.dt)
 </s> add             Session.objects.annotate(dt=Min('events__dt')).order_by('dt'),
            [morning_min_dt, afternoon_min_dt],
            transform=lambda d: d.dt) </s> remove                 Session.objects.annotate(dt=Min('events__dt')).order_by('dt'),
                [morning_min_dt, afternoon_min_dt],
                transform=lambda d: d.dt)
 </s> add             Session.objects.annotate(dt=Min('events__dt')).order_by('dt'),
            [morning_min_dt, afternoon_min_dt],
            transform=lambda d: d.dt) </s> remove                 Item.objects.select_related("child").order_by("name"),
                ["<Item: item1>", "<Item: item2>"]
 </s> add             Item.objects.select_related("child").order_by("name"),
            ["<Item: item1>", "<Item: item2>"]
            Party.objects.filter(when__year=1), [
                datetime.date(1, 3, 3),
            ],
            attrgetter("when")
          )
  
          # Regression test for #18969
          self.assertQuerysetEqual(
            Party.objects.filter(when__year=1), [
                datetime.date(1, 3, 3),
            ],
            attrgetter("when")
            Party.objects.filter(when__year=1), [
                datetime.date(1, 3, 3),
            ],
            attrgetter("when")
            Party.objects.filter(when__year=1), [
                datetime.date(1, 3, 3),
            ],
            attrgetter("when")
            Party.objects.filter(when__year=1), [
                datetime.date(1, 3, 3),
            ],
            attrgetter("when")
          )
          self.assertQuerysetEqual(
                  Party.objects.filter(when__year='1'), [
                          datetime.date(1, 3, 3),
                  ],
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Fixed #21288 -- Fixed E126 pep8 warnings 
tests/model_regress/tests.py