From 02680eba59536c554fc7fcda91fb61461059f593 Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Sat, 2 Jul 2016 01:50:57 -0400 Subject: [PATCH] bytestringify a few more paths in test_importer --- test/test_importer.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/test_importer.py b/test/test_importer.py index cd5756b1d..b879290ad 100644 --- a/test/test_importer.py +++ b/test/test_importer.py @@ -355,9 +355,10 @@ def create_archive(session): (handle, path) = mkstemp(dir=session.temp_dir) os.close(handle) archive = ZipFile(path, mode='w') - archive.write(os.path.join(_common.RSRC, 'full.mp3'), + archive.write(os.path.join(_common.RSRC, b'full.mp3'), 'full.mp3') archive.close() + path = bytestring_path(path) return path @@ -411,7 +412,7 @@ class ImportTarTest(ImportZipTest): (handle, path) = mkstemp(dir=self.temp_dir) os.close(handle) archive = TarFile(path, mode='w') - archive.add(os.path.join(_common.RSRC, 'full.mp3'), + archive.add(os.path.join(_common.RSRC, b'full.mp3'), 'full.mp3') archive.close() return path @@ -421,14 +422,14 @@ class ImportTarTest(ImportZipTest): class ImportRarTest(ImportZipTest): def create_archive(self): - return os.path.join(_common.RSRC, 'archive.rar') + return os.path.join(_common.RSRC, b'archive.rar') @unittest.skip('Implement me!') class ImportPasswordRarTest(ImportZipTest): def create_archive(self): - return os.path.join(_common.RSRC, 'password.rar') + return os.path.join(_common.RSRC, b'password.rar') class ImportSingletonTest(_common.TestCase, ImportHelper):