def setUp(self):
        """Use the same server for all tests."""
        global _server

        if not _server:
            _server = Server()
            _server.start()
            wait = 5
            running = False
            while not running and wait > 0:
                try:
                    urlopen(WebGuiTest.defaulturl).read()
                    running = True
                except (URLError, socket_error, __HOLE__):
                    wait -= 1
                    sleep(1)
dataset/ETHPy150Open pympler/pympler/test/gui/test_web.py/WebGuiTest.setUp