Ticket #21267: E502.diff

File E502.diff, 1.7 KB (added by Tim Graham, 11 years ago)
  • tests/admin_widgets/tests.py

    diff --git a/tests/admin_widgets/tests.py b/tests/admin_widgets/tests.py
    index c75ffe5..e988a06 100644
    a b class AdminFormfieldForDBFieldTests(TestCase):  
    5454        # Check that we got a field of the right type
    5555        self.assertTrue(
    5656            isinstance(widget, widgetclass),
    57             "Wrong widget for %s.%s: expected %s, got %s" % \
     57            "Wrong widget for %s.%s: expected %s, got %s" %
    5858                (model.__class__.__name__, fieldname, widgetclass, type(widget))
    5959        )
    6060
  • tests/distinct_on_fields/tests.py

    diff --git a/tests/distinct_on_fields/tests.py b/tests/distinct_on_fields/tests.py
    index 392178d..5ce3ee4 100644
    a b class DistinctOnTests(TestCase):  
    5151                ['<Staff: p1>', '<Staff: p1>', '<Staff: p2>', '<Staff: p3>'],
    5252            ),
    5353            (
    54                 Celebrity.objects.filter(fan__in=[self.fan1, self.fan2, self.fan3]).\
     54                Celebrity.objects.filter(fan__in=[self.fan1, self.fan2, self.fan3]).
    5555                    distinct('name').order_by('name'),
    5656                ['<Celebrity: c1>', '<Celebrity: c2>'],
    5757            ),
    5858            # Does combining querysets work?
    5959            (
    60                 (Celebrity.objects.filter(fan__in=[self.fan1, self.fan2]).\
     60                (Celebrity.objects.filter(fan__in=[self.fan1, self.fan2]).
    6161                    distinct('name').order_by('name')
    62                 |Celebrity.objects.filter(fan__in=[self.fan3]).\
     62                |Celebrity.objects.filter(fan__in=[self.fan3]).
    6363                    distinct('name').order_by('name')),
    6464                ['<Celebrity: c1>', '<Celebrity: c2>'],
    6565            ),
Back to Top