From 12c2511b1fe72a29ab7bfe47ff509897dfd6780b Mon Sep 17 00:00:00 2001 From: Bruno Cauet Date: Thu, 19 Mar 2015 13:37:29 +0100 Subject: [PATCH] Smartplaylist tests: don't use a dict literal fucking py26! --- test/test_smartplaylist.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_smartplaylist.py b/test/test_smartplaylist.py index 4ed2cb4ba..4af1cfeb6 100644 --- a/test/test_smartplaylist.py +++ b/test/test_smartplaylist.py @@ -78,7 +78,8 @@ class SmartPlaylistTest(unittest.TestCase): ]) spl.build_queries() - sorts = {name: sort for name, (_, sort), _ in spl._unmatched_playlists} + sorts = dict((name, sort) + for name, (_, sort), _ in spl._unmatched_playlists) asseq = self.assertEqual # less cluttered code S = FixedFieldSort # short cut since we're only dealing with this