diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-09-02 12:06:32 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-09-03 07:34:45 -0500 |
| commit | 115318051c092f6ca8240262bd8b17b9e56ab838 (patch) | |
| tree | d3be5498ae182a0b84c4b87c6f0a1e3e8006ea18 /tests/basic | |
| parent | 50012577f31da9e92613501508094651ed0b4943 (diff) | |
[1.6.x] Replaced "not PY3" by "PY2", new in six 1.4.0.
Conflicts:
django/db/backends/oracle/base.py
django/db/backends/sqlite3/base.py
django/db/models/base.py
Backport of 365c3e8b from master.
Diffstat (limited to 'tests/basic')
| -rw-r--r-- | tests/basic/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basic/tests.py b/tests/basic/tests.py index d8c0964288..6795abb0e7 100644 --- a/tests/basic/tests.py +++ b/tests/basic/tests.py @@ -350,7 +350,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>"]) |
