@async
        def gevent_with_urllib(self):

            def download(url):
                return urllib.urlopen(url).read()

            delay = 1
            n = 5
            t = time.time()
            urls = ["http://httpbin.org/delay/%s" % delay for _ in range(n)]
            result = yield MultiGTask([self.Task(download, url) for url in urls])
            result2 = yield [self.Task(download, url) for url in urls]
            elapsed = t - time.time()
            self.assertEqual(len(result), n)
            self.assertLess(elapsed, delay * n)
            print(elapsed)
dataset/ETHPy150Open reclosedev/async_gui/tests/test_gevent.py/GeventExecutorTestCase.gevent_with_urllib/swapped operands of `-`