tests: Remove work around for non-writeable name property of StringIO.

This commit is contained in:
Aditya Bansal 2017-08-14 02:59:43 +05:30 committed by Tim Abbott
parent 26edde21f7
commit 269cd3b8bf
1 changed files with 1 additions and 4 deletions

View File

@ -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):