Skip to content

Commit 6d50b6f

Browse files
author
Mike Kistler
committed
Fix unicode error in examples tests
1 parent bdd1eb3 commit 6d50b6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def test_examples():
5252

5353
try:
5454
service_file = open(example).read()
55-
exec(re.sub('# coding=utf-8', '', service_file), globals())
55+
exec(re.sub('# coding[:=]\s*utf-8', '', service_file), globals())
5656
except Exception as e:
5757
assert False, 'example in file ' + name + ' failed with error: '\
5858
+ str(e) + '\n' + traceback.format_exc()

0 commit comments

Comments
 (0)