Commits

James Lan committed f4cf409

Support getsockname; fix a typo on var name; fix issue that test hangs on failure

Comments (0)

Files changed (2)

pypesocketTest.py

     def decorator(func):
         def wrapper(self):
             self.server.start(response)
-            func(self)
-            self.server.stop()
+            try:
+                func(self)
+            finally:
+                self.server.stop()
             #print "main thread finished"
         return wrapper
     return decorator
             for retry in xrange(10):
                 self.closing = True
                 _kernel32.DeleteFileA(self.path)
-                time.sleep(timeoutg)
+                time.sleep(timeout)
                 if self.closed:
                     break
                 timeout *= 2
         pass
 
     def getsockname(self):
-        pass
+        return ''
 
     def getsockopt(self, level, optname, buflen):
         pass