pytest-xprocess icon indicating copy to clipboard operation
pytest-xprocess copied to clipboard

TypeError: Can't instantiate abstract class Starter with abstract methods pattern

Open pjmattingly opened this issue 3 years ago • 1 comments

Describe the bug When not using the pattern parameter, this error is returned:

TypeError: Can't instantiate abstract class Starter with abstract methods pattern

To Reproduce Steps to reproduce the behavior:

Duplicate the Quickstart code, but comment out the pattern parameter. see: https://pytest-xprocess.readthedocs.io/en/latest/

Expected behavior The documentation does not make it clear that the pattern parameter is required. Also the error message produced is not very informative.

Personally, I would perfer to use the startup_check function to check that my server is working rather than pattern. Perhaps one of the parameters timeout, pattern, or startup_check should be required instead of only pattern being required?

Screenshots NA

Environment (please complete the following information): Windows 11

Additional context NA

pjmattingly avatar Apr 06 '22 22:04 pjmattingly

+1 I also found this very counterintuitive.

henrieglesorotos avatar Sep 26 '23 08:09 henrieglesorotos