Skip to content

Commit 6130643

Browse files
committed
Fixed benchmarks
1 parent b70834c commit 6130643

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
package_dir={'': 'src'},
3434
# These should also be duplicated in tox.ini and ../.travis.yml
3535
install_requires=[
36-
'fluent.syntax>=0.14,<=0.16',
36+
'fluent.syntax>=0.14',
3737
'attrs>=19.3.0',
3838
'babel>=2.8.0',
3939
'pytz',

tools/benchmarks/gettext_comparisons.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,7 @@ def interpreting_fluent_bundle():
102102

103103
@pytest.fixture
104104
def compiling_fluent_bundle():
105-
return CompilingFluentBundle.from_string(FTL_MESSAGES, use_isolating=False)
106-
107-
108-
def build_fluent_bundle(cls):
109-
# We choose 'use_isolating=False' for feature parity with gettext
110-
ctx = cls(['pl'], use_isolating=False)
111-
ctx.add_messages(FTL_MESSAGES)
112-
return ctx
105+
return CompilingFluentBundle.from_string('pl', FTL_MESSAGES, use_isolating=False)
113106

114107

115108
def unicode_gettext_method(gettext_translations):

tools/benchmarks/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
pytest
22
pytest-benchmark
3+
fluent.runtime==0.2
4+
fluent.syntax==0.17

0 commit comments

Comments
 (0)