Commits

Denis Bilenko  committed 0a08dbc

test__socket.py: add TestRef

  • Participants
  • Parent commits e6b82f3

Comments (0)

Files changed (1)

File greentest/test__socket.py

                 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()