aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorEugene Kliuchnikov <eustas@google.com>2017-07-21 10:07:24 +0200
committerGitHub <noreply@github.com>2017-07-21 10:07:24 +0200
commit52441069ef31c3c02a4aecad727f2ec5a17ab68b (patch)
treed2a7e7d0b60c9b365ba4d871bf8e535b6e9abc2e /python
parent172a378debedec81eb19747c96c28a81d917d284 (diff)
downloadbrotli-52441069ef31c3c02a4aecad727f2ec5a17ab68b.zip
brotli-52441069ef31c3c02a4aecad727f2ec5a17ab68b.tar.gz
brotli-52441069ef31c3c02a4aecad727f2ec5a17ab68b.tar.bz2
Update (#574)custom-dictionary
* Update * decoder: better behavior after failure * encoder: replace "len_x_code" with delta * research: add experimental dictionary generator * python: test combing
Diffstat (limited to 'python')
-rw-r--r--python/tests/_test_utils.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/tests/_test_utils.py b/python/tests/_test_utils.py
index 5d1842e..e38edd3 100644
--- a/python/tests/_test_utils.py
+++ b/python/tests/_test_utils.py
@@ -10,10 +10,12 @@ import unittest
project_dir = os.path.abspath(os.path.join(__file__, '..', '..', '..'))
+src_dir = os.path.join(project_dir, 'python')
+test_dir = os.path.join(project_dir, 'tests')
PYTHON = sys.executable or 'python'
-BRO = os.path.join(project_dir, 'python', 'bro.py')
+BRO = os.path.join(src_dir, 'bro.py')
# Get the platform/version-specific build folder.
# By default, the distutils build base is in the same location as setup.py.
@@ -30,7 +32,7 @@ if 'PYTHONPATH' not in TEST_ENV:
else:
TEST_ENV['PYTHONPATH'] = build_dir + os.pathsep + TEST_ENV['PYTHONPATH']
-TESTDATA_DIR = os.path.join(project_dir, 'tests', 'testdata')
+TESTDATA_DIR = os.path.join(test_dir, 'testdata')
TESTDATA_FILES = [
'empty', # Empty file