From dac0cabda905054f1bf0b6307f322929b5231f52 Mon Sep 17 00:00:00 2001 From: Tom Tucker Date: Tue, 14 May 2019 12:27:46 -0500 Subject: [PATCH] Update the h2htbl_test case to run in a container --- test/h2htbl_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/h2htbl_test.py b/test/h2htbl_test.py index de7931df..e10d1fe3 100755 --- a/test/h2htbl_test.py +++ b/test/h2htbl_test.py @@ -9,6 +9,7 @@ import numpy as np import numpy.random as nprnd import time +import sys class Debug(object): pass logger = logging.getLogger(__name__) @@ -37,7 +38,7 @@ def tearDownClass(cls): def test_00_add_tokens(self): global next_tkn_id - f = open("eng-dictionary", "r") + f = open(os.path.dirname(sys.argv[0]) + "/eng-dictionary", "r") for word in f: tkn_text = word.rstrip() if next_tkn_id % 300 == 0: