summaryrefslogtreecommitdiff
path: root/tests/get_object_or_404
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2017-01-20 10:20:53 +0100
committerClaude Paroz <claude@2xlibre.net>2017-01-20 14:13:55 +0100
commit042b7350a080cc964f913faf1cf7f0097f650a58 (patch)
tree4ad77d8fc8ae016770afe01a543a6042fa02357a /tests/get_object_or_404
parent4e729feaa647547f25debb1cb63dec989dc41a20 (diff)
downloaddjango-042b7350a080cc964f913faf1cf7f0097f650a58.tar.gz
Refs #23919 -- Removed unneeded str() calls
Diffstat (limited to 'tests/get_object_or_404')
-rw-r--r--tests/get_object_or_404/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/get_object_or_404/tests.py b/tests/get_object_or_404/tests.py
index fa3c0cb324..a72b766524 100644
--- a/tests/get_object_or_404/tests.py
+++ b/tests/get_object_or_404/tests.py
@@ -81,7 +81,7 @@ class GetObjectOr404Tests(TestCase):
# raises a helpful ValueError message
msg = "First argument to get_object_or_404() must be a Model, Manager, or QuerySet, not 'str'."
with self.assertRaisesMessage(ValueError, msg):
- get_object_or_404(str("Article"), title__icontains="Run")
+ get_object_or_404("Article", title__icontains="Run")
class CustomClass:
pass