diff --git a/py/__init__.py b/py/__init__.py index 285dd5360..cb7475e98 100644 --- a/py/__init__.py +++ b/py/__init__.py @@ -66,7 +66,6 @@ initpkg(__name__, 'test.__doc__' : ('./test/__init__.py', '__doc__'), 'test._PluginManager' : ('./test/pluginmanager.py', 'PluginManager'), 'test.raises' : ('./test/outcome.py', 'raises'), - 'test.deprecated_call' : ('./test/outcome.py', 'deprecated_call'), 'test.skip' : ('./test/outcome.py', 'skip'), 'test.importorskip' : ('./test/outcome.py', 'importorskip'), 'test.fail' : ('./test/outcome.py', 'fail'), diff --git a/py/_com.py b/py/_com.py index 0f383df61..432ee6d00 100644 --- a/py/_com.py +++ b/py/_com.py @@ -109,7 +109,7 @@ class Hooks: mm = HookCall(registry, name, firstresult=firstresult) setattr(self, name, mm) def __repr__(self): - return "" %(self._hookspecs, self._plugins) + return "" %(self._hookspecs, self.registry) class HookCall: def __init__(self, registry, name, firstresult, extralookup=None): diff --git a/py/bin/gendoc.py b/py/bin/gendoc.py index 0411ce82d..140bd39f2 100755 --- a/py/bin/gendoc.py +++ b/py/bin/gendoc.py @@ -10,6 +10,7 @@ except ImportError: py.std.sys.exit() else: args = list(sys.argv[1:]) + args.extend(['-p', 'apigen']) argkeys = [a.split('=')[0] for a in args] if '--apigen' not in argkeys: args.append('--apigen') @@ -18,5 +19,5 @@ else: os.path.dirname(apigen.__file__), 'tool', 'py_build', 'build.py') args.append('--apigenscript=%s' % (fpath,)) if '--apigenpath' not in argkeys: - args.append('--apigenpath=/tmp/pylib-api') + args.append('--apigenpath=api') py.test.cmdline.main(args) diff --git a/py/misc/testing/test_api.py b/py/misc/testing/test_api.py index 23c1f37b3..07d6defbf 100644 --- a/py/misc/testing/test_api.py +++ b/py/misc/testing/test_api.py @@ -4,6 +4,17 @@ import py import sys import inspect +def test_all_resolves(): + seen = py.builtin.set([py]) + lastlength = None + while len(seen) != lastlength: + lastlength = len(seen) + for item in py.builtin.frozenset(seen): + for value in item.__dict__.values(): + if isinstance(value, type(py.test)): + seen.add(value) + + class TestAPI_V0_namespace_consistence: def test_path_entrypoints(self): assert inspect.ismodule(py.path)