old_contents: import pytest
  
  
  class TestClass(object):
  
      @pytest.mark.dependency()
      @pytest.mark.xfail(reason="deliberate fail")
      def test_a(self):
          assert False
  
      @pytest.mark.dependency()
      def test_b(self):
          pass
  
      @pytest.mark.dependency(depends=["TestClass::test_a"])
      def test_c(self):
          pass
  
      @pytest.mark.dependency(depends=["TestClass::test_b"])
      def test_d(self):
          pass
  
      @pytest.mark.dependency(depends=["TestClass::test_b", "TestClass::test_c"])
      def test_e(self):
          pass
  
  
  class TestClassNamed(object):
  
      @pytest.mark.dependency(name="a")
      @pytest.mark.xfail(reason="deliberate fail")
      def test_a(self):
          assert False
  
      @pytest.mark.dependency(name="b", depends=["a"])
      def test_b(self):
          pass
  
      @pytest.mark.dependency(name="c")
      def test_c(self):
          pass
  
      @pytest.mark.dependency(name="d", depends=["c"])
      def test_d(self):
          pass
  
      @pytest.mark.dependency(name="e", depends=["b", "c"])
      def test_e(self):
          pass
  
new_contents: import pytest
  
  
  class TestClass(object):
  
      @pytest.mark.dependency()
      @pytest.mark.xfail(reason="deliberate fail")
      def test_a(self):
          assert False
  
      @pytest.mark.dependency()
      def test_b(self):
          pass
  
      @pytest.mark.dependency(depends=["TestClass::test_a"])
      def test_c(self):
          pass
  
      @pytest.mark.dependency(depends=["TestClass::test_b"])
      def test_d(self):
          pass
  
      @pytest.mark.dependency(depends=["TestClass::test_b", "TestClass::test_c"])
      def test_e(self):
          pass
  
  
  class TestClassNamed(object):
  
      @pytest.mark.dependency(name="a")
      @pytest.mark.xfail(reason="deliberate fail")
      def test_a(self):
          assert False
  
      @pytest.mark.dependency(name="b")
      def test_b(self):
          pass
  
      @pytest.mark.dependency(name="c", depends=["a"])
      def test_c(self):
          pass
  
      @pytest.mark.dependency(name="d", depends=["b"])
      def test_d(self):
          pass
  
      @pytest.mark.dependency(name="e", depends=["b", "c"])
      def test_e(self):
          pass
  
subject: Fix documentation example.