Fix syntax error in autodoc testcase when using Python 2.4 and earlier
This commit is contained in:
parent
31ae3fe79d
commit
ef4d44e92d
1 changed files with 3 additions and 1 deletions
|
|
@ -3,7 +3,9 @@ import sys
|
|||
|
||||
def check(got, expected, expected_builtin = None, skip = False):
|
||||
if not skip:
|
||||
expect = expected_builtin if is_python_builtin() and expected_builtin != None else expected
|
||||
expect = expected
|
||||
if is_python_builtin() and expected_builtin != None:
|
||||
expect = expected_builtin
|
||||
if expect != got:
|
||||
raise RuntimeError("\n" + "Expected: [" + str(expect) + "]\n" + "Got : [" + str(got) + "]")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue