mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-10 08:12:24 +03:00
Create test that fails when actual cleanup caused
This commit is contained in:
parent
caae77f72d
commit
47ce2347b0
|
@ -35,6 +35,11 @@ def test_issue1506():
|
||||||
del anchor
|
del anchor
|
||||||
gc.collect()
|
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:
|
for t in d:
|
||||||
str(t.lemma_)
|
str(t.lemma_)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user