Parcourir la source

[1828] Add comments about the close() calls

Mukund Sivaraman il y a 13 ans
Parent
commit
7406cfc6f0
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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)
         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()
         p2.close()
         t1.close()