Remove test checking for compatibility warning

We had a test that relied on an __init_subclass__ on the Pipe,
as we did this to provide a migration warning for v2 -> v3.
The __init_subclass__ no longer works on Cython classes and the
test is old, so just removed it.
This commit is contained in:
Matthew Honnibal 2025-05-20 18:46:03 +02:00
parent f6b1546a74
commit b207df4ebb

View File

@ -529,17 +529,6 @@ def test_pipe_label_data_no_labels(pipe):
assert "labels" not in get_arg_names(initialize)
def test_warning_pipe_begin_training():
with pytest.warns(UserWarning, match="begin_training"):
class IncompatPipe(TrainablePipe):
def __init__(self):
...
def begin_training(*args, **kwargs):
...
def test_pipe_methods_initialize():
"""Test that the [initialize] config reflects the components correctly."""
nlp = Language()