Skip to content

Turn warnings into errors in the test suite #78

Description

@nicoddemus

Currently the test suite is issuing this warnings:

=============================== warnings summary ===============================
testing/test_method_ordering.py::test_add_tracefuncs[spec-is-class]
  /home/travis/build/nicoddemus/pluggy/.tox/py34/lib/python3.4/site-packages/pluggy/__init__.py:678: UserWarning: Argument(s) ('arg',) which are declared in the hookspec can not be found in this hook call
    .format(tuple(notincall))
testing/test_method_ordering.py::test_add_tracefuncs[spec-is-instance]
  /home/travis/build/nicoddemus/pluggy/.tox/py34/lib/python3.4/site-packages/pluggy/__init__.py:678: UserWarning: Argument(s) ('arg',) which are declared in the hookspec can not be found in this hook call
    .format(tuple(notincall))
testing/test_pluginmanager.py::test_call_with_too_few_args
  /home/travis/build/nicoddemus/pluggy/.tox/py34/lib/python3.4/site-packages/pluggy/__init__.py:678: UserWarning: Argument(s) ('arg',) which are declared in the hookspec can not be found in this hook call
    .format(tuple(notincall))
-- Docs: http://doc.pytest.org/en/latest/warnings.html

Turning them into errors or at least mark them as "known" is a good way to catch incompatibilities early.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions