Skip to content

Commit 07483c6

Browse files
committed
Fix failing test case for new Django versions
See https://code.djangoproject.com/ticket/34968 for more details
1 parent 9472011 commit 07483c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_log_data_truncated(self):
8181
"""
8282

8383
# An impossibly large post dict
84-
extra_data = {"a" * x: x for x in range(1024)}
84+
extra_data = {"too-large-field": "x" * 2 ** 16}
8585
self.login(**extra_data)
8686
self.assertEqual(len(AccessAttempt.objects.latest("id").post_data), 1024)
8787

0 commit comments

Comments
 (0)