Skip to content

Commit

Permalink
Add memory leak test
Browse files Browse the repository at this point in the history
  • Loading branch information
PJ-Finlay committed Aug 30, 2023
1 parent 8461694 commit ea62fc2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration-tests/memoryleak.py
@@ -0,0 +1,10 @@
import argostranslate.package
import argostranslate.translate

from_code = "en"
to_code = "es"

# Translate
while True:
translatedText = argostranslate.translate.translate("Hello World", from_code, to_code)
print(translatedText)

0 comments on commit ea62fc2

Please sign in to comment.