]> granicus.if.org Git - python/commitdiff
Effectively renamed tokenize_tests.py to have a txt extension instead.
authorTim Peters <tim.peters@gmail.com>
Mon, 12 May 2003 19:42:04 +0000 (19:42 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 12 May 2003 19:42:04 +0000 (19:42 +0000)
This file isn't meant to be executed, it's data input for test_tokenize.py.
The problem with the .py extension is that it uses "non-standard"
indentation, and it's good to test that, but reindent.py keeps wanting
to fix it.  But fixing the indentation causes the expected-output file to
change, since exact line and column numbers are part of the
tokenize.tokenize() output getting tested.

Lib/test/test_tokenize.py
Lib/test/tokenize_tests.txt [moved from Lib/test/tokenize_tests.py with 100% similarity]
PCbuild/python20.wse

index 22a1d90afb00bec0cf19c50a070858e2cb857e9b..d21740468f1751afad91d4b535c5b450fab3ad4c 100644 (file)
@@ -4,7 +4,7 @@ import tokenize, os, sys
 if verbose:
     print 'starting...'
 
-f = file(findfile('tokenize_tests'+os.extsep+'py'))
+f = file(findfile('tokenize_tests' + os.extsep + 'txt'))
 tokenize.tokenize(f.readline)
 f.close()
 
index 90ecf2533143e50f1c794e5d408ae7f7451d9a84..e97d4b0e599d0fc5d56d513c63a96a917dd05237 100644 (file)
@@ -2357,6 +2357,12 @@ item: Install File
   Description=Python Test files
   Flags=0000000000000010
 end
+item: Install File
+  Source=..\lib\test\*.txt
+  Destination=%MAINDIR%\Lib\test
+  Description=Python Test files
+  Flags=0000000000000010
+end
 item: Remark
 end
 item: Install File