          else:
              assert list(sstore1_d) != list(sstore2_d)
  
  
  @pytest.mark.skipif(is_python2, reason="Dict order? Not sure if worth investigating")
  @pytest.mark.parametrize("strings,lex_attr", test_strings_attrs)
  def test_pickle_vocab(strings, lex_attr):
      vocab = Vocab(strings=strings)
      vocab[strings[0]].norm_ = lex_attr
      vocab_pickled = pickle.dumps(vocab)
 
</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 
          else:
              assert list(sstore1_d) != list(sstore2_d)
  
  

  @pytest.mark.parametrize("strings,lex_attr", test_strings_attrs)
  def test_pickle_vocab(strings, lex_attr):
      vocab = Vocab(strings=strings)
      vocab[strings[0]].norm_ = lex_attr
      vocab_pickled = pickle.dumps(vocab)
keep keep keep keep replace keep keep keep keep keep
 Remove references to Python 2 / is_python2 
spacy/tests/serialize/test_serialize_vocab_strings.py