瀏覽代碼

Ensure token list is copied before being fed to the builder.

tags/v0.4
Ben Kurtovic 10 年之前
父節點
當前提交
e1ebb59b9e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      tests/_test_tokenizer.py

+ 1
- 1
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"])


Loading…
取消
儲存