diff options
author | Tim Graham <timograham@gmail.com> | 2017-01-21 20:02:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-21 20:02:00 -0500 |
commit | d170c63351944fd91b2206d10f89e7ff75b53b76 (patch) | |
tree | e2be66471ab071fa0ce75097d66650b650c53853 /tests/decorators | |
parent | c22212220a7900173358a1f16179dcfc9e03de78 (diff) | |
download | django-d170c63351944fd91b2206d10f89e7ff75b53b76.tar.gz |
Refs #23919 -- Removed misc references to Python 2.
Diffstat (limited to 'tests/decorators')
-rw-r--r-- | tests/decorators/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/decorators/tests.py b/tests/decorators/tests.py index c2116a05ce..8fedacec22 100644 --- a/tests/decorators/tests.py +++ b/tests/decorators/tests.py @@ -256,8 +256,8 @@ class MethodDecoratorTests(SimpleTestCase): def test_bad_iterable(self): decorators = {myattr_dec_m, myattr2_dec_m} - # The rest of the exception message differs between Python 2 and 3. - with self.assertRaisesMessage(TypeError, "'set' object"): + msg = "'set' object is not subscriptable" + with self.assertRaisesMessage(TypeError, msg): @method_decorator(decorators, "method") class TestIterable: def method(self): |