mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed assorted flake8 errors.
This commit is contained in:
parent
695bc0d191
commit
b67ab75e82
38 changed files with 92 additions and 73 deletions
|
@ -367,7 +367,7 @@ class FTimeDeltaTests(TestCase):
|
|||
def test_delta_invalid_op_mod(self):
|
||||
raised = False
|
||||
try:
|
||||
r = repr(Experiment.objects.filter(end__lt=F('start')%self.deltas[0]))
|
||||
r = repr(Experiment.objects.filter(end__lt=F('start') % self.deltas[0]))
|
||||
except TypeError:
|
||||
raised = True
|
||||
self.assertTrue(raised, "TypeError not raised on attempt to modulo divide datetime by timedelta.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue