mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Replaced "not PY3" by "PY2", new in six 1.4.0.
This commit is contained in:
parent
4292097078
commit
365c3e8b73
27 changed files with 47 additions and 49 deletions
|
@ -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>"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue