def collect(self):
loader = yaml.CLoader if hasattr(yaml, 'CLoader') else yaml.Loader
with self.fspath.open() as f:
data = yaml.load(f.read(), Loader=loader)
for test in self._compose_tests(data):
yield test