Create test that fails when actual cleanup caused

This commit is contained in:
Roman 2017-11-14 20:28:13 +03:00 committed by GitHub
parent caae77f72d
commit 47ce2347b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,6 +35,11 @@ def test_issue1506():
del anchor
gc.collect()
# We should run cleanup more than one time to actually cleanup data.
# In first run — clean up only mark strings as «not hitted».
if i == 20000 or i == 30000:
gc.collect()
for t in d:
str(t.lemma_)