      assert neighbour == "cat", remap
      assert_allclose(similarity, get_cosine(data[0], data[2]), atol=1e-4, rtol=1e-3)
  
  
  @pytest.mark.skipif(is_python2, reason="Dict order? Not sure if worth investigating")
  def test_vectors_serialize():
      data = numpy.asarray([[4, 2, 2, 2], [4, 2, 2, 2], [1, 1, 1, 1]], dtype="f")
      v = Vectors(data=data, keys=["A", "B", "C"])
      b = v.to_bytes()
      v_r = Vectors()
 
</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="ResourceWarning needs Python 3.x")
 </s> add  </s> remove if not is_python2:
 </s> add class TestToDiskResourceWarningUnittest(TestCase):
    def test_resource_warning(self):
        scenarios = zip(*objects_to_test) </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 @pytest.mark.skipif(is_python2, reason="ResourceWarning needs Python 3.x")
 </s> add 
      assert neighbour == "cat", remap
      assert_allclose(similarity, get_cosine(data[0], data[2]), atol=1e-4, rtol=1e-3)
  
  

  def test_vectors_serialize():
      data = numpy.asarray([[4, 2, 2, 2], [4, 2, 2, 2], [1, 1, 1, 1]], dtype="f")
      v = Vectors(data=data, keys=["A", "B", "C"])
      b = v.to_bytes()
      v_r = Vectors()
keep keep keep keep replace keep keep keep keep keep
 Remove references to Python 2 / is_python2 
spacy/tests/vocab_vectors/test_vectors.py