Sfoglia il codice sorgente

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

tags/v0.4
Ben Kurtovic 9 anni fa
parent
commit
e1ebb59b9e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      tests/_test_tokenizer.py

+ 1
- 1
tests/_test_tokenizer.py Vedi File

@@ -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"])


Caricamento…
Annulla
Salva