mirror of
https://github.com/python/cpython.git
synced 2025-10-28 04:04:44 +00:00
and replaces them with a new API verify(). As a result the regression suite will also perform its tests in optimization mode. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
9 lines
222 B
Python
9 lines
222 B
Python
from test_support import verify, verbose, findfile
|
|
import tokenize, os, sys
|
|
|
|
if verbose:
|
|
print 'starting...'
|
|
file = open(findfile('tokenize_tests.py'))
|
|
tokenize.tokenize(file.readline)
|
|
if verbose:
|
|
print 'finished'
|