From dfc5da70cd9f5152e3fe4a01819a88604aa51ac7 Mon Sep 17 00:00:00 2001 From: Carl Suster Date: Fri, 29 Mar 2019 11:55:09 +1100 Subject: [PATCH] BPD tests: avoid os.fsdecode new in Py3.2 --- test/test_player.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_player.py b/test/test_player.py index b8a5d992f..bcc696d69 100644 --- a/test/test_player.py +++ b/test/test_player.py @@ -247,14 +247,14 @@ class BPDTest(unittest.TestCase, TestHelper): """ # Create a config file: config = { - 'pluginpath': [os.fsdecode(self.temp_dir)], + 'pluginpath': [py3_path(self.temp_dir)], 'plugins': 'bpd', 'bpd': {'host': host, 'port': port}, } if password: config['bpd']['password'] = password config_file = tempfile.NamedTemporaryFile( - mode='wb', dir=os.fsdecode(self.temp_dir), suffix='.yaml', + mode='wb', dir=py3_path(self.temp_dir), suffix='.yaml', delete=False) config_file.write( yaml.dump(config, Dumper=confit.Dumper, encoding='utf-8'))