jayvdb / anyhttp

HTTP client interface
MIT License
0 stars 2 forks source link

aiohttp fails #8

Open jayvdb opened 3 years ago

jayvdb commented 3 years ago

https://travis-ci.org/github/jayvdb/anyhttp/jobs/60829310 shows that aiohttp 0.15.3 on py34 was working.

aiohttp 2.3.10 on py34 passes. https://travis-ci.org/github/jayvdb/anyhttp/jobs/735239009

Now the same logic on aiohttp 3.6.3 on py35 fails https://travis-ci.org/github/jayvdb/anyhttp/jobs/735235151

testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/travis/build/jayvdb/anyhttp/.tox/py35/lib/python3.5/site-packages/testscenarios/scenarios.py", line 216, in _test
    return test(self, *args, **kwargs)
  File "/home/travis/build/jayvdb/anyhttp/tests/http_tests.py", line 96, in do_get_text
    result = anyhttp.get_text(self.request_url)
  File "/home/travis/build/jayvdb/anyhttp/anyhttp/__init__.py", line 601, in get_text
    return http.get_text(url)
  File "/home/travis/build/jayvdb/anyhttp/anyhttp/__init__.py", line 39, in get_text
    raw = self.raw(url)
  File "/home/travis/build/jayvdb/anyhttp/anyhttp/py33_clients.py", line 16, in raw
    return loop.run_until_complete(self.raw_worker(url))
  File "/opt/python/3.5.6/lib/python3.5/asyncio/base_events.py", line 467, in run_until_complete
    return future.result()
  File "/opt/python/3.5.6/lib/python3.5/asyncio/futures.py", line 294, in result
    raise self._exception
  File "/opt/python/3.5.6/lib/python3.5/asyncio/tasks.py", line 240, in _step
    result = coro.send(None)
  File "/home/travis/build/jayvdb/anyhttp/anyhttp/py33_clients.py", line 10, in raw_worker
    response = yield from self.package.request('GET', url)
TypeError: '_SessionRequestContextManager' object is not iterable