          # Expected to succeed with a warning, as disable=[] should override the config setting.
          with pytest.warns(UserWarning):
              spacy.load(
                  tmp_dir,
                  enable=["tagger"],
                  disable=[],
                  config={"nlp": {"disabled": ["senter"]}},
              )
  
  
  def test_load_disable_enable():
      """Tests spacy.load() with dis-/enabling components."""
 
</s> remove         # Expected to succeed with a warning, as disable=[] should override the config setting.
        with pytest.warns(UserWarning):
 </s> add         # Expected to fail due to conflict between enable and disabled.
        with pytest.raises(ValueError): </s> remove         # Expected to fail, as config and arguments conflict.
        with pytest.raises(ValueError):
            spacy.load(
                tmp_dir, enable=["tagger"], config={"nlp": {"disabled": ["senter"]}}
            )
 </s> add         # Expected to succeed, as config and arguments do not conflict.
        assert spacy.load(
            tmp_dir, enable=["tagger"], config={"nlp": {"disabled": ["senter"]}}
        ).disabled == ["senter", "sentencizer"] </s> remove         with pytest.warns(UserWarning):
            nlp4 = spacy.load(d, disable=["ner"])
    assert nlp4.pipe_names == ["tagger"]
 </s> add         nlp4 = spacy.load(d, disable=["ner"])
    assert nlp4.pipe_names == [] </s> remove     assert nlp4.disabled == ["ner"]
 </s> add     assert nlp4.disabled == ["ner", "tagger"] </s> remove             to_disable = [
                pipe_name for pipe_name in pipe_names if pipe_name not in enable
            ]
            if disable and disable != to_disable:
 </s> add             to_disable = {
                *[pipe_name for pipe_name in pipe_names if pipe_name not in enable],
                *disable,
            }
            # If any pipe to be enabled is in to_disable, the specification is inconsistent.
            if len(set(enable) & to_disable):
                enable=["senter"],
                config={"nlp": {"disabled": ["senter", "tagger"]}},
          # Expected to succeed with a warning, as disable=[] should override the config setting.
          with pytest.warns(UserWarning):
              spacy.load(
                  tmp_dir,
                enable=["senter"],
                config={"nlp": {"disabled": ["senter", "tagger"]}},
                enable=["senter"],
                config={"nlp": {"disabled": ["senter", "tagger"]}},
                enable=["senter"],
                config={"nlp": {"disabled": ["senter", "tagger"]}},
              )
  
  
  def test_load_disable_enable():
      """Tests spacy.load() with dis-/enabling components."""
keep keep keep keep replace replace replace keep keep keep keep keep
 Revert disable/disabled merging behavior (#11745)

* Merge disable with disabled. Adjust warnings, errors and tests.

* Replace any() with set operation.

* Update spacy/tests/pipeline/test_pipe_methods.py

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>

* Update docs.

* Remve reference to config entry nlp.enabled from docs.

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com> 
spacy/tests/pipeline/test_pipe_methods.py