      warnings_list = write_obj_and_catch_warnings(obj)
      assert len(warnings_list) == 0
  
  
  @pytest.mark.skipif(is_python2, reason="ResourceWarning needs Python 3.x")
  def test_writer_with_path_py35():
      writer = None
      with make_tempdir() as d:
          path = d / "test"
          try:
 
</s> remove @pytest.mark.skipif(is_python2, reason="ResourceWarning needs Python 3.x")
 </s> add  </s> remove     class TestToDiskResourceWarningUnittest(TestCase):
        def test_resource_warning(self):
            scenarios = zip(*objects_to_test)

            for scenario in scenarios:
                with self.subTest(msg=scenario[1]):
                    warnings_list = write_obj_and_catch_warnings(scenario[0])
                    self.assertEqual(len(warnings_list), 0)
 </s> add         for scenario in scenarios:
            with self.subTest(msg=scenario[1]):
                warnings_list = write_obj_and_catch_warnings(scenario[0])
                self.assertEqual(len(warnings_list), 0) </s> remove if not is_python2:
 </s> add class TestToDiskResourceWarningUnittest(TestCase):
    def test_resource_warning(self):
        scenarios = zip(*objects_to_test) </s> remove @pytest.mark.skipif(is_python2, reason="Dict order? Not sure if worth investigating")
 </s> add  </s> remove @pytest.mark.skipif(is_python2, reason="Dict order? Not sure if worth investigating")
 </s> add 
      warnings_list = write_obj_and_catch_warnings(obj)
      assert len(warnings_list) == 0
  
  

  def test_writer_with_path_py35():
      writer = None
      with make_tempdir() as d:
          path = d / "test"
          try:
keep keep keep keep replace keep keep keep keep keep
 Remove references to Python 2 / is_python2 
spacy/tests/regression/test_issue5230.py