Commit 2fd5dab9 authored by Xavier Thompson's avatar Xavier Thompson

[fix] Fix zc.recipe.egg tests with recent setuptools

With recent setuptools, the way the test package index is laid out
causes a warning log to be emitted, which needs to be filtered out
to keep matching the expected test output.
parent d44ef025
...@@ -101,6 +101,12 @@ def test_suite(): ...@@ -101,6 +101,12 @@ def test_suite():
zc.buildout.testing.normalize_endings, zc.buildout.testing.normalize_endings,
zc.buildout.testing.not_found, zc.buildout.testing.not_found,
zc.buildout.testing.root_logger_messages, zc.buildout.testing.root_logger_messages,
# Setuptools may emit this warning if it hasn't yet indexed
# the index page of the test package index (at <index-url>)
# because it starts by looking at <index-url>/<package-name>
# and warns if it needs to fallback to scanning <index-url>.
(re.compile(r"Couldn't find index page for 'demo' .*\r?\n"),
''),
]) ])
), ),
doctest.DocFileSuite( doctest.DocFileSuite(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment