mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #21298 -- Fixed E301 pep8 warnings
This commit is contained in:
parent
317040a73b
commit
c3aa2948c6
83 changed files with 180 additions and 2 deletions
|
@ -673,6 +673,7 @@ class ModelTest(TestCase):
|
|||
def test_emptyqs_customqs(self):
|
||||
# A hacky test for custom QuerySet subclass - refs #17271
|
||||
Article.objects.create(headline='foo', pub_date=datetime.now())
|
||||
|
||||
class CustomQuerySet(QuerySet):
|
||||
def do_something(self):
|
||||
return 'did something'
|
||||
|
@ -734,6 +735,7 @@ class ConcurrentSaveTests(TransactionTestCase):
|
|||
"""
|
||||
a = Article.objects.create(headline='foo', pub_date=datetime.now())
|
||||
exceptions = []
|
||||
|
||||
def deleter():
|
||||
try:
|
||||
# Do not delete a directly - doing so alters its state.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue