mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #21298 -- Fixed E301 pep8 warnings
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user