Skip to content

Commit

Permalink
Skip IPv6 tests on Travis, as it is not supported.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritsvanrees committed Dec 1, 2017
1 parent 659adca commit 8976221
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc/CHANGES.rst
Expand Up @@ -8,6 +8,8 @@ http://docs.zope.org/zope2/
2.13.27 (unreleased)
--------------------

- Skip IPv6 tests on Travis, as it is not supported.

- add ``tox`` test configuration

- set explicit PyPI index, the old ``zc.buildout`` defaults no longer work
Expand Down
8 changes: 7 additions & 1 deletion src/ZServer/tests/test_config.py
Expand Up @@ -145,11 +145,17 @@ def test_http_over_ipv6(self):
self.assertEqual(factory.host, "::1")
self.assertEqual(factory.port, 81)
self.check_prepare(factory)
# Until here the test works on Travis, but ipv6 is not available
# there anymore, so we skip the rest of the test.
# See https://github.com/zopefoundation/Zope/issues/46
if os.environ.get('TRAVIS'):
print('Skipping ipv6 test on Travis.')
return
server = factory.create()
self.assertEqual(server.ip, '::1')
self.assertEqual(server.port, 9381)
server.close()

def test_http_factory_defaulthost(self):
factory = self.load_factory("""\
<http-server>
Expand Down

0 comments on commit 8976221

Please sign in to comment.