Commit dece1943 authored by Jason Madden's avatar Jason Madden

Print available resolvers [skip travis]

parent 3a823fa8
...@@ -153,6 +153,7 @@ build_script: ...@@ -153,6 +153,7 @@ build_script:
test_script: test_script:
# Run the project tests # Run the project tests
- "%PYEXE% -c \"import gevent.core; print(gevent.core.loop)\"" - "%PYEXE% -c \"import gevent.core; print(gevent.core.loop)\""
- "%PYEXE% -c \"import gevent; print(gevent.config.settings['resolver'].get_options())\""
- "cd src/greentest && %PYEXE% testrunner.py --config known_failures.py --quiet && cd ../.." - "cd src/greentest && %PYEXE% testrunner.py --config known_failures.py --quiet && cd ../.."
after_test: after_test:
......
...@@ -266,6 +266,17 @@ class ImportableSetting(object): ...@@ -266,6 +266,17 @@ class ImportableSetting(object):
return value return value
return self._import([self.shortname_map.get(x, x) for x in value]) return self._import([self.shortname_map.get(x, x) for x in value])
def get_options(self):
result = {}
for name, val in self.shortname_map.items():
try:
result[name] = self._import(val)
except ImportError as e:
import traceback
traceback.print_exc()
result[name] = e
return result
class BoolSettingMixin(object): class BoolSettingMixin(object):
validate = staticmethod(validate_bool) validate = staticmethod(validate_bool)
# Don't do string-to-list conversion. # Don't do string-to-list conversion.
......
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