summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/many_to_one_regress/tests.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/many_to_one_regress/tests.py b/tests/many_to_one_regress/tests.py
index a9969a7e90..035ba53bff 100644
--- a/tests/many_to_one_regress/tests.py
+++ b/tests/many_to_one_regress/tests.py
@@ -60,10 +60,6 @@ class ManyToOneRegressionTests(TestCase):
self.assertRaises(ValueError, Child, name='xyzzy', parent=None)
self.assertRaises(ValueError, Child.objects.create, name='xyzzy', parent=None)
- # Trying to assign to unbound attribute raises AttributeError
- six.assertRaisesRegex(self, AttributeError, "must be accessed via instance",
- Child.parent.__set__, None, p)
-
# Creation using keyword argument should cache the related object.
p = Parent.objects.get(name="Parent")
c = Child(parent=p)