mirror of
https://github.com/matrix-org/synapse-s3-storage-provider.git
synced 2024-10-23 07:29:40 +00:00
Fix test_s3.py to work with python 2
This commit is contained in:
parent
5fa3b097dc
commit
af9ee9df53
1 changed files with 7 additions and 1 deletions
|
@ -18,7 +18,13 @@ from twisted.python.failure import Failure
|
||||||
from twisted.test.proto_helpers import MemoryReactorClock
|
from twisted.test.proto_helpers import MemoryReactorClock
|
||||||
from twisted.trial import unittest
|
from twisted.trial import unittest
|
||||||
|
|
||||||
|
import sys
|
||||||
|
is_py2 = sys.version[0] == '2'
|
||||||
|
if is_py2:
|
||||||
|
from Queue import Queue
|
||||||
|
else:
|
||||||
from queue import Queue
|
from queue import Queue
|
||||||
|
|
||||||
from threading import Event, Thread
|
from threading import Event, Thread
|
||||||
|
|
||||||
from mock import Mock
|
from mock import Mock
|
||||||
|
|
Loading…
Reference in a new issue