From eaa69d18e5d8f61fe26abe2e0113ee484d704558 Mon Sep 17 00:00:00 2001 From: idan <idanzalz@gmail.com> Date: Sat, 20 Jul 2013 19:47:06 +0300 Subject: [PATCH] Made test python 2.6 compliant and removed gitignore item --- .gitignore | 2 -- tests/tests.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 1c41e53..b172573 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,3 @@ django_taggit.egg-info/ dist/ _build/ .tox/ - -.idea diff --git a/tests/tests.py b/tests/tests.py index de5b581..511b93a 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -349,7 +349,7 @@ class TaggableManagerTestCase(BaseTaggingTestCase): with self.assertNumQueries(2): l = list(self.food_model.objects.prefetch_related('tags').all()) with self.assertNumQueries(0): - foods = {f.name : set(t.name for t in f.tags.all()) for f in l} + foods = dict((f.name, set(t.name for t in f.tags.all())) for f in l) self.assertEqual(foods, { u'orange': {'2', '4'}, u'apple': {'1', '2'} -- libgit2 0.26.0