diff options
author | Erik Rose <erik@mozilla.com> | 2011-11-20 21:29:39 -0800 |
---|---|---|
committer | Erik Rose <erik@mozilla.com> | 2011-11-20 21:29:39 -0800 |
commit | 23d42b6ef30408a7558f565e247be452d68aeb35 (patch) | |
tree | ef6e472d42afe59370891563b6d60398fad4eebf /blessings/tests.py | |
parent | d8fcd032acf53ee39076b59ab5fff79a8f8ca187 (diff) | |
download | blessings-23d42b6ef30408a7558f565e247be452d68aeb35.tar.gz |
TypeError isn't subscriptable in Python 3.
Diffstat (limited to 'blessings/tests.py')
-rw-r--r-- | blessings/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/blessings/tests.py b/blessings/tests.py index d9e7d85..62de8fd 100644 --- a/blessings/tests.py +++ b/blessings/tests.py @@ -130,14 +130,14 @@ def test_nice_formatting_errors(): try: t.bold_misspelled('hey') except TypeError, e: - assert 'probably misspelled' in e[0] + assert 'probably misspelled' in e.args[0] try: t.bold_misspelled(None) # an arbitrary non-string except TypeError, e: - assert 'probably misspelled' not in e[0] + assert 'probably misspelled' not in e.args[0] try: t.bold_misspelled('a', 'b') # >1 string arg except TypeError, e: - assert 'probably misspelled' not in e[0] + assert 'probably misspelled' not in e.args[0] |