Skip to content

Commit d8d12c4

Browse files
committed
issue python-jsonschema#158: Fix unicode issue with python-2.7.
1 parent fa13f74 commit d8d12c4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

jsonschema/tests/test_benchmarks.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#-*- coding: utf-8 -*-
2+
13
from math import sqrt
24
from textwrap import dedent
35
import time
@@ -233,7 +235,7 @@ def _get_model_schema(additional_properties=False, for_prevalidation=False):
233235
'$ref': '#/definitions/positiveNumber',
234236
'description': dedent("""
235237
The test mass of the vehicle used in all calculations (kg),
236-
as defined in Annex 4.2.1.3.1, pg 94.
238+
as defined in Annex 4.2.1.3.1, pg 94.
237239
"""),
238240
},
239241
'v_max': {
@@ -266,7 +268,7 @@ def _get_model_schema(additional_properties=False, for_prevalidation=False):
266268
'n_idle': {
267269
'title': 'idling revolutions',
268270
'$ref': '#/definitions/positiveNumber',
269-
'description': 'The idling engine revolutions (Annex 1).',
271+
'description': 'The idling engine revolutions (Annex 1).',
270272
},
271273
'n_min': {
272274
'title': 'minimum engine revolutions',
@@ -294,7 +296,7 @@ def _get_model_schema(additional_properties=False, for_prevalidation=False):
294296
'maxItems': 3,
295297
'description': dedent("""
296298
The 3 driving resistance coefficients f0, f1, f2,
297-
in N, N/(km/h), and N/(km/h)² respectively (Annex 4).
299+
in N, N/(km/h), and N/(km/h)² respectively (Annex 4).
298300
299301
If not specified, they are determined based on ``test_mass`` from
300302
a pre-calculated regression curve:

0 commit comments

Comments
 (0)