

def testTimeoutDefault(self):
    self.assertTrue((socket.getdefaulttimeout() is None))
    socket.setdefaulttimeout(30)
    try:
        pop = poplib.POP3(HOST, pop.port)
    finally:
        socket.setdefaulttimeout(None)
    self.assertEqual(pop.sock.gettimeout(), 30)
    pop.sock.close()

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_poplib.py TestTimeouts.testTimeoutDefault/VarMisuse@44/59 `self`->`pop`