mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Whitespace normalization. Leaving tokenize_tests.py alone for now.
This commit is contained in:
parent
be4cbb1668
commit
d2bf3b7ca6
9 changed files with 41 additions and 44 deletions
|
@ -73,13 +73,13 @@ def findfile(file, here=__file__):
|
|||
return file
|
||||
|
||||
def verify(condition, reason='test failed'):
|
||||
|
||||
""" Verify that condition is true. If not, raise an
|
||||
AssertionError.
|
||||
|
||||
The optinal argument reason can be given to provide
|
||||
a better error text.
|
||||
|
||||
"""
|
||||
if not condition:
|
||||
raise AssertionError,reason
|
||||
""" Verify that condition is true. If not, raise an
|
||||
AssertionError.
|
||||
|
||||
The optinal argument reason can be given to provide
|
||||
a better error text.
|
||||
|
||||
"""
|
||||
if not condition:
|
||||
raise AssertionError,reason
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue