summaryrefslogtreecommitdiff
path: root/tests/basic/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basic/tests.py')
-rw-r--r--tests/basic/tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/basic/tests.py b/tests/basic/tests.py
index 195030c714..e4559dc7d7 100644
--- a/tests/basic/tests.py
+++ b/tests/basic/tests.py
@@ -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.