Skip to content

Commit

Permalink
tweak the hint output
Browse files Browse the repository at this point in the history
  • Loading branch information
janwijbrand committed Sep 29, 2016
1 parent 2f1882a commit 8310515
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/zope/testing/renormalizing.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


EXCEPTION_2TO3 = doctest.register_optionflag('EXCEPTION_2TO3')
EXCEPTION_2TO3_HINT = """
EXCEPTION_2TO3_HINT = """\
===============================================================
HINT:
You seem to test traceback output.
Expand Down
11 changes: 7 additions & 4 deletions src/zope/testing/renormalizing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,12 @@ to be helpful by explaining how to test for exceptions in the traceback output.

>>> want = """\
... Traceback (most recent call last):
... foo.bar.FooBarErrorXX: requires at least one argument."""
... foo.bar.FooBarErrorXX: requires at least one argument.
... """
>>> got = """\
... Traceback (most recent call last):
... FooBarError: requires at least one argument."""
... FooBarError: requires at least one argument.
... """
>>> checker.check_output(want, got, EXCEPTION_2TO3)
False
>>> from doctest import Example
Expand All @@ -273,8 +275,9 @@ to be helpful by explaining how to test for exceptions in the traceback output.
... foo.bar.FooBarErrorXX: requires at least one argument.
... Got:
... Traceback (most recent call last):
... FooBarError: requires at least one argument."""
>>> hint = """
... FooBarError: requires at least one argument.
... """
>>> hint = """\
... ===============================================================
... HINT:
... You seem to test traceback output.
Expand Down

0 comments on commit 8310515

Please sign in to comment.