From d6a1e13ed6fc1db1d2087ba56fc9130f9ab641f9 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Thu, 27 Jun 2013 00:25:25 +0200 Subject: [PATCH] tests: Use utf-8 when encoding our test data paths to bytes --- tests/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/__init__.py b/tests/__init__.py index b358f32b..a384669e 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,12 +1,11 @@ from __future__ import unicode_literals import os -import sys def path_to_data_dir(name): if not isinstance(name, bytes): - name = name.encode(sys.getfilesystemencoding()) + name = name.encode('utf-8') path = os.path.dirname(__file__) path = os.path.join(path, b'data') path = os.path.abspath(path)