From e1ebb59b9e1be3fe2ffd64c679e02983234d20ae Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Wed, 22 Oct 2014 22:59:42 -0500 Subject: [PATCH] Ensure token list is copied before being fed to the builder. --- tests/_test_tokenizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/_test_tokenizer.py b/tests/_test_tokenizer.py index e44280b..17d588b 100644 --- a/tests/_test_tokenizer.py +++ b/tests/_test_tokenizer.py @@ -53,7 +53,7 @@ class TokenizerTestCase(object): def inner(self): if hasattr(self, "roundtrip"): expected = data["input"] - actual = str(Builder().build(data["output"])) + actual = str(Builder().build(data["output"][:])) else: expected = data["output"] actual = self.tokenizer().tokenize(data["input"])