def test_skipws():
    grammar = """
    Rule:
        'entity' name=ID call=Rule2;
    Rule2[skipws]:
        'first' 'second';
    """

    # Change default behavior
    metamodel = metamodel_from_str(grammar, skipws=False)

    # ws skipping is disabled globally but Rule2 enables ws skipping
    # so this will not parse.
    with pytest.raises(TextXSyntaxError):
        metamodel.model_from_str("entity Person first second")

    # This will parse.
    metamodel.model_from_str("entityPerson first  second")
Create a Signal instance waiting on signum.
dataset/ETHPy150Open igordejanovic/textX/tests/functional/test_rule_modifiers.py/test_skipws--crossover with--dataset/ETHPy150Open dieseldev/diesel/diesel/util/event.py/Signal.__init__