experiments.py 400 B

12345678910111213
  1. class PytestExerimentalApiWarning(FutureWarning):
  2. "warning category used to denote experiments in pytest"
  3. @classmethod
  4. def simple(cls, apiname):
  5. return cls(
  6. "{apiname} is an experimental api that may change over time".format(
  7. apiname=apiname
  8. )
  9. )
  10. PYTESTER_COPY_EXAMPLE = PytestExerimentalApiWarning.simple("testdir.copy_example")