diff options
Diffstat (limited to 'tests/file_uploads')
| -rw-r--r-- | tests/file_uploads/tests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/file_uploads/tests.py b/tests/file_uploads/tests.py index 7b31d369b2..db9b915d35 100644 --- a/tests/file_uploads/tests.py +++ b/tests/file_uploads/tests.py @@ -479,8 +479,9 @@ class FileUploadTests(TestCase): try: self.client.post('/upload_errors/', post_data) except reference_error.__class__ as err: - self.assertFalse( - str(err) == str(reference_error), + self.assertNotEqual( + str(err), + str(reference_error), "Caught a repeated exception that'll cause an infinite loop in file uploads." ) except Exception as err: |
