Commit b00e23d5 authored by Denis Bilenko's avatar Denis Bilenko

test__socket.py: add TestRef

parent be22cc6e
......@@ -199,5 +199,16 @@ class TestClosedSocket(greentest.TestCase):
raise
class TestRef(greentest.TestCase):
def test(self):
sock = socket.socket()
assert sock.ref is True, sock.ref
sock.ref = False
assert sock.ref is False, sock.ref
assert sock._read_event.ref is False, sock.ref
assert sock._write_event.ref is False, sock.ref
if __name__ == '__main__':
greentest.main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment