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-02 12:11:02 +0200 |
commit | 365c3e8b73eab825a8ecd0cf8046e1a0824ccd45 (patch) | |
tree | f22f78037da5fa34250851e1dace72c4b2e77e78 /tests/signing | |
parent | 4292097078279226cb725c2921011fb14634b9af (diff) | |
download | django-365c3e8b73eab825a8ecd0cf8046e1a0824ccd45.tar.gz |
Replaced "not PY3" by "PY2", new in six 1.4.0.
Diffstat (limited to 'tests/signing')
-rw-r--r-- | tests/signing/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/signing/tests.py b/tests/signing/tests.py index 05c8b3dc74..5c5c2b1da7 100644 --- a/tests/signing/tests.py +++ b/tests/signing/tests.py @@ -48,7 +48,7 @@ class TestSigner(TestCase): 'jkw osanteuh ,rcuh nthu aou oauh ,ud du', '\u2019', ] - if not six.PY3: + if six.PY2: examples.append(b'a byte string') for example in examples: signed = signer.sign(example) @@ -79,7 +79,7 @@ class TestSigner(TestCase): 'a unicode string \u2019', {'a': 'dictionary'}, ] - if not six.PY3: + if six.PY2: objects.append(b'a byte string') for o in objects: self.assertNotEqual(o, signing.dumps(o)) |