Skip to content

Commit

Permalink
Merge pull request #4519 from Gallaecio/test-ubuntu-bionic
Browse files Browse the repository at this point in the history
Test the latest Ubuntu along the latest Python
  • Loading branch information
kmike committed May 6, 2020
2 parents 0a7581d + 98835a0 commit 2da952b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -27,10 +27,13 @@ matrix:
python: 3.7
- env: TOXENV=py PYPI_RELEASE_JOB=true
python: 3.8
dist: bionic
- env: TOXENV=extra-deps
python: 3.8
dist: bionic
- env: TOXENV=asyncio
python: 3.8
dist: bionic
install:
- |
if [ "$TOXENV" = "pypy3" ]; then
Expand Down
9 changes: 1 addition & 8 deletions tests/test_crawler.py
Expand Up @@ -311,14 +311,7 @@ def test_ipv6_default_name_resolver(self):
def test_ipv6_alternative_name_resolver(self):
log = self.run_script('alternative_name_resolver.py')
self.assertIn('Spider closed (finished)', log)
self.assertTrue(any([
"twisted.internet.error.ConnectionRefusedError" in log,
"twisted.internet.error.ConnectError" in log,
]))
self.assertTrue(any([
"'downloader/exception_type_count/twisted.internet.error.ConnectionRefusedError': 1," in log,
"'downloader/exception_type_count/twisted.internet.error.ConnectError': 1," in log,
]))
self.assertNotIn("twisted.internet.error.DNSLookupError", log)

def test_reactor_select(self):
log = self.run_script("twisted_reactor_select.py")
Expand Down

0 comments on commit 2da952b

Please sign in to comment.