summaryrefslogtreecommitdiff
path: root/tests/basic
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-09-02 12:06:32 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-09-02 12:11:02 +0200
commit365c3e8b73eab825a8ecd0cf8046e1a0824ccd45 (patch)
treef22f78037da5fa34250851e1dace72c4b2e77e78 /tests/basic
parent4292097078279226cb725c2921011fb14634b9af (diff)
Replaced "not PY3" by "PY2", new in six 1.4.0.
Diffstat (limited to 'tests/basic')
-rw-r--r--tests/basic/tests.py2
1 files changed, 1 insertions, 1 deletions
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):
"<Article: Third article>"])
# 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)],
["<Article: Second article>", "<Article: Third article>"])