diff options
Diffstat (limited to 'tests/test_exceptions/test_formatter.py')
-rw-r--r-- | tests/test_exceptions/test_formatter.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_exceptions/test_formatter.py b/tests/test_exceptions/test_formatter.py index 2fe4528..3d5bdad 100644 --- a/tests/test_exceptions/test_formatter.py +++ b/tests/test_exceptions/test_formatter.py @@ -74,7 +74,7 @@ def test_content(): raise_error() except: result = format(f) - print result + print(result) assert 'test_object' in result assert 'http://whatever.com' in result assert 'This is some supplemental information' in result @@ -103,7 +103,7 @@ def test_hide(): hide(True, raise_error) except: result = format(f) - print result + print(result) assert 'in hide_inner' not in result assert 'inner(*args, **kw)' not in result else: @@ -112,7 +112,7 @@ def test_hide(): def print_diff(s1, s2): differ = difflib.Differ() result = list(differ.compare(s1.splitlines(), s2.splitlines())) - print '\n'.join(result) + print('\n'.join(result)) def test_hide_supppressed(): """ @@ -153,7 +153,7 @@ def test_hide_after(): raise_error) except: result = format(f) - print strip_html(result).encode('ascii', 'replace') + print(strip_html(result).encode('ascii', 'replace')) assert 'AABB' in result assert 'CCDD' not in result assert 'raise_error' in result @@ -169,7 +169,7 @@ def test_hide_before(): raise_error) except: result = format(f) - print result + print(result) assert 'AABB' not in result assert 'raise_error' in result else: |