Skip to content

Commit

Permalink
seeds added
Browse files Browse the repository at this point in the history
  • Loading branch information
ansable committed Jun 18, 2019
1 parent fc7e2ef commit 8b51589
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ __pycache__/
*.py[cod]
*$py.class
*.pyc
**/.idea/
*.gitignore

# C extensions
*.so
Expand Down
4 changes: 3 additions & 1 deletion test/test_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
from io import StringIO

from pattern import text

from random import seed
seed(0)
#---------------------------------------------------------------------------------------------------


Expand Down Expand Up @@ -90,6 +91,7 @@ def setUp(self):
pass

def test_model(self):

# Assert SLP language model.
v = text.Model()
for i in range(2):
Expand Down
3 changes: 2 additions & 1 deletion test/test_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
import warnings

from pattern import web

from random import seed
seed(0)
try:
PATH = os.path.dirname(os.path.realpath(__file__))
except:
Expand Down

0 comments on commit 8b51589

Please sign in to comment.