Fix decode error

This commit is contained in:
Sambhav Kothari
2017-04-06 00:42:40 +05:30
parent f5d908b8f2
commit 69251f2907
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ from picard.util import bytes2human
class Testbytes2human(unittest.TestCase):
def setUp(self):
# we are using temporary locales for tests
self.tmp_path = tempfile.mkdtemp().decode("utf-8")
self.tmp_path = tempfile.mkdtemp()
if sys.hexversion >= 0x020700F0:
self.addCleanup(shutil.rmtree, self.tmp_path)
self.localedir = os.path.join(self.tmp_path, 'locale')