mirror of https://github.com/zulip/zulip.git
tests: Remove work around for non-writeable name property of StringIO.
This commit is contained in:
parent
26edde21f7
commit
269cd3b8bf
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue