From 269cd3b8bf8f3e91e01de9cba1978c8f40a4618b Mon Sep 17 00:00:00 2001 From: Aditya Bansal Date: Mon, 14 Aug 2017 02:59:43 +0530 Subject: [PATCH] tests: Remove work around for non-writeable name property of StringIO. --- zerver/tests/test_upload.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/zerver/tests/test_upload.py b/zerver/tests/test_upload.py index 85d79cd762..abe92ac0e6 100644 --- a/zerver/tests/test_upload.py +++ b/zerver/tests/test_upload.py @@ -35,7 +35,7 @@ from PIL import Image from boto.s3.connection import S3Connection from boto.s3.key import Key -from six.moves import StringIO as _StringIO +from six.moves import StringIO import mock import os import io @@ -56,9 +56,6 @@ def destroy_uploads(): if os.path.exists(settings.LOCAL_UPLOADS_DIR): shutil.rmtree(settings.LOCAL_UPLOADS_DIR) -class StringIO(_StringIO): - name = '' # https://github.com/python/typeshed/issues/598 - class FileUploadTest(UploadSerializeMixin, ZulipTestCase): def test_rest_endpoint(self):