mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +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
|
||||
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_)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user