diff options
author | Federico Bond <federicobond@gmail.com> | 2018-06-25 09:30:58 +0200 |
---|---|---|
committer | Claude Paroz <claude@2xlibre.net> | 2018-06-25 09:30:58 +0200 |
commit | 4c36414323d9035a93a2b7a54ff5281116950fe1 (patch) | |
tree | 6bc596c759876ea436dfd99bd206362c96b16181 /tests/properties | |
parent | 02cd16a7a04529c726e5bb5a13d5979119f25c7d (diff) | |
download | django-4c36414323d9035a93a2b7a54ff5281116950fe1.tar.gz |
Fixed #29517 -- Rephrased error message when passing incorrect kwarg to model constructor
Diffstat (limited to 'tests/properties')
-rw-r--r-- | tests/properties/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/properties/tests.py b/tests/properties/tests.py index a50a825953..9ba28c0d0d 100644 --- a/tests/properties/tests.py +++ b/tests/properties/tests.py @@ -18,7 +18,7 @@ class PropertyTests(TestCase): setattr(self.a, 'full_name', 'Paul McCartney') # And cannot be used to initialize the class. - with self.assertRaisesMessage(TypeError, "'full_name' is an invalid keyword argument"): + with self.assertRaisesMessage(TypeError, "Person() got an unexpected keyword argument 'full_name'"): Person(full_name='Paul McCartney') # But "full_name_2" has, and it can be used to initialize the class. |