  from spacy.vectors import Vectors
  from spacy.tokenizer import Tokenizer
  from spacy.strings import hash_string
  from spacy.tokens import Doc
  from spacy.compat import is_python2
  
  from ..util import add_vecs_to_vocab, get_cosine, make_tempdir
  
  
  @pytest.fixture
 
</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.vectors import Vectors
  from spacy.tokenizer import Tokenizer
  from spacy.strings import hash_string
  from spacy.tokens import Doc

  
  from ..util import add_vecs_to_vocab, get_cosine, make_tempdir
  
  
  @pytest.fixture
keep keep keep keep replace keep keep keep keep keep
 Remove references to Python 2 / is_python2 
spacy/tests/vocab_vectors/test_vectors.py