mirror of
https://github.com/django/django.git
synced 2024-11-29 14:46:18 +01:00
Removed a test that didn't make sense; code could never be called the way the test was written.
This commit is contained in:
parent
3d595c3bc3
commit
6634cb7b53
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user