(self)
| 1209 | @unittest.skipUnless(hasattr(sys, 'getrefcount'), |
| 1210 | 'test needs sys.getrefcount()') |
| 1211 | def testRefCountGetNameInfo(self): |
| 1212 | # Testing reference count for getnameinfo |
| 1213 | try: |
| 1214 | # On some versions, this loses a reference |
| 1215 | orig = sys.getrefcount(__name__) |
| 1216 | socket.getnameinfo(__name__,0) |
| 1217 | except TypeError: |
| 1218 | if sys.getrefcount(__name__) != orig: |
| 1219 | self.fail("socket.getnameinfo loses a reference") |
| 1220 | |
| 1221 | def testInterpreterCrash(self): |
| 1222 | # Making sure getnameinfo doesn't crash the interpreter |
nothing calls this directly
no test coverage detected