diff options
| author | Alex Gaynor <alex.gaynor@rd.io> | 2013-05-09 06:55:25 -0700 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@rd.io> | 2013-05-09 06:55:25 -0700 |
| commit | 6634cb7b53bc35241e070f1896ff2fc439c19d0f (patch) | |
| tree | abd9b7cdb0e1d8de7dbce5b5b3a7d757bf8ef4a6 | |
| parent | 3d595c3bc38cf939503b69ce7a2802d5663f85b9 (diff) | |
Removed a test that didn't make sense; code could never be called the way the test was written.
| -rw-r--r-- | tests/many_to_one_regress/tests.py | 4 |
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) |
