summaryrefslogtreecommitdiffhomepage
path: root/tests/loop.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/loop.py')
-rw-r--r--tests/loop.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/loop.py b/tests/loop.py
index 2f3f5dfc..cfd76265 100644
--- a/tests/loop.py
+++ b/tests/loop.py
@@ -32,7 +32,7 @@ class LoopSocket (object):
"""
def __init__(self):
- self.__in_buffer = ''
+ self.__in_buffer = bytes()
self.__lock = threading.Lock()
self.__cv = threading.Condition(self.__lock)
self.__timeout = None
@@ -42,7 +42,7 @@ class LoopSocket (object):
self.__unlink()
try:
self.__lock.acquire()
- self.__in_buffer = ''
+ self.__in_buffer = bytes()
finally:
self.__lock.release()