add issue references to the todos
This commit is contained in:
parent
64a353f2b6
commit
102ffc69e8
|
@ -270,6 +270,7 @@ class PytestPluginManager(PluginManager):
|
||||||
opts = {}
|
opts = {}
|
||||||
if opts is not None:
|
if opts is not None:
|
||||||
# TODO: DeprecationWarning, people should use hookimpl
|
# TODO: DeprecationWarning, people should use hookimpl
|
||||||
|
# https://github.com/pytest-dev/pytest/issues/4562
|
||||||
known_marks = {m.name for m in getattr(method, "pytestmark", [])}
|
known_marks = {m.name for m in getattr(method, "pytestmark", [])}
|
||||||
|
|
||||||
for name in ("tryfirst", "trylast", "optionalhook", "hookwrapper"):
|
for name in ("tryfirst", "trylast", "optionalhook", "hookwrapper"):
|
||||||
|
@ -286,6 +287,7 @@ class PytestPluginManager(PluginManager):
|
||||||
|
|
||||||
if name.startswith("pytest_"):
|
if name.startswith("pytest_"):
|
||||||
# todo: deprecate hookspec hacks
|
# todo: deprecate hookspec hacks
|
||||||
|
# https://github.com/pytest-dev/pytest/issues/4562
|
||||||
known_marks = {m.name for m in getattr(method, "pytestmark", [])}
|
known_marks = {m.name for m in getattr(method, "pytestmark", [])}
|
||||||
opts = {
|
opts = {
|
||||||
"firstresult": hasattr(method, "firstresult")
|
"firstresult": hasattr(method, "firstresult")
|
||||||
|
|
|
@ -1290,6 +1290,8 @@ class Function(FunctionMixin, nodes.Item, fixtures.FuncargnamesCompatAttr):
|
||||||
self.keywords.update(keywords)
|
self.keywords.update(keywords)
|
||||||
|
|
||||||
# todo: this is a hell of a hack
|
# todo: this is a hell of a hack
|
||||||
|
# https://github.com/pytest-dev/pytest/issues/4569
|
||||||
|
|
||||||
self.keywords.update(
|
self.keywords.update(
|
||||||
dict.fromkeys(
|
dict.fromkeys(
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue