Skip to content

Commit 2acf477

Browse files
Merge pull request #296 from watson-developer-cloud/mdk/295-fix-examples-tests
Fix unicode error in examples tests
2 parents 0b0e671 + 6d50b6f commit 2acf477

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)