Skip to content

Commit

Permalink
Update fake test socket objects to exhibit Python 3 socket-closed flag
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Jun 12, 2016
1 parent 0e54d0f commit f336a34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ def __init__(self):
self.__cv = threading.Condition(self.__lock)
self.__timeout = None
self.__mate = None
self._closed = False

def close(self):
self.__unlink()
self._closed = True
try:
self.__lock.acquire()
self.__in_buffer = bytes()
Expand Down

0 comments on commit f336a34

Please sign in to comment.