  from spacy.kb import KnowledgeBase, Writer
  from spacy.vectors import Vectors
  from spacy.language import Language
  from spacy.pipeline import Pipe
  from spacy.compat import is_python2
  
  
  from ..util import make_tempdir
  
  
 
</s> remove from spacy.compat import is_python2
 </s> add  </s> remove from spacy.compat import is_python2
 </s> add  </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  </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)
  from spacy.kb import KnowledgeBase, Writer
  from spacy.vectors import Vectors
  from spacy.language import Language
  from spacy.pipeline import Pipe

  
  
  from ..util import make_tempdir
  
  
keep keep keep keep replace keep keep keep keep keep
 Remove references to Python 2 / is_python2 
spacy/tests/regression/test_issue5230.py