From 365c3e8b73eab825a8ecd0cf8046e1a0824ccd45 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Mon, 2 Sep 2013 12:06:32 +0200 Subject: Replaced "not PY3" by "PY2", new in six 1.4.0. --- tests/basic/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/basic') diff --git a/tests/basic/tests.py b/tests/basic/tests.py index 2204989823..fb3b06a543 100644 --- a/tests/basic/tests.py +++ b/tests/basic/tests.py @@ -373,7 +373,7 @@ class ModelTest(TestCase): ""]) # Slicing works with longs (Python 2 only -- Python 3 doesn't have longs). - if not six.PY3: + if six.PY2: self.assertEqual(Article.objects.all()[long(0)], a) self.assertQuerysetEqual(Article.objects.all()[long(1):long(3)], ["", ""]) -- cgit v1.3