Show deprecation warnings for compat properties

Fix #3616
This commit is contained in:
Bruno Oliveira
2018-09-13 14:04:29 -03:00
parent 495a55725b
commit bf074b37a3
5 changed files with 44 additions and 6 deletions

View File

@@ -800,7 +800,7 @@ class Generator(FunctionMixin, PyCollector):
"%r generated tests with non-unique name %r" % (self, name)
)
seen[name] = True
values.append(self.Function(name, self, args=args, callobj=call))
values.append(Function(name, self, args=args, callobj=call))
self.warn(deprecated.YIELD_TESTS)
return values