Browse Source

[1828] Add comments about the close() calls

Mukund Sivaraman 13 years ago
parent
commit
7406cfc6f0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/lib/python/isc/bind10/tests/sockcreator_test.py

+ 3 - 0
src/lib/python/isc/bind10/tests/sockcreator_test.py

@@ -319,6 +319,9 @@ class WrapTests(unittest.TestCase):
         data = t1.recv(1)
         data = t1.recv(1)
         self.assertEqual(b'C', data)
         self.assertEqual(b'C', data)
 
 
+        # Explicitly close temporary socket pair as the Python
+        # interpreter expects it.  It may not be 100% exception safe,
+        # but since this is only for tests we prefer brevity.
         p1.close()
         p1.close()
         p2.close()
         p2.close()
         t1.close()
         t1.close()