From 0ff2ee0561302f8a5ce456e4c5c74acbf6ed73c5 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Mon, 12 May 2003 19:42:04 +0000 Subject: [PATCH] Effectively renamed tokenize_tests.py to have a txt extension instead. 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 | 2 +- Lib/test/{tokenize_tests.py => tokenize_tests.txt} | 0 PCbuild/python20.wse | 6 ++++++ 3 files changed, 7 insertions(+), 1 deletion(-) rename Lib/test/{tokenize_tests.py => tokenize_tests.txt} (100%) diff --git a/Lib/test/test_tokenize.py b/Lib/test/test_tokenize.py index 22a1d90afb00..d21740468f17 100644 --- a/Lib/test/test_tokenize.py +++ b/Lib/test/test_tokenize.py @@ -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() diff --git a/Lib/test/tokenize_tests.py b/Lib/test/tokenize_tests.txt similarity index 100% rename from Lib/test/tokenize_tests.py rename to Lib/test/tokenize_tests.txt diff --git a/PCbuild/python20.wse b/PCbuild/python20.wse index 90ecf2533143..e97d4b0e599d 100644 --- a/PCbuild/python20.wse +++ b/PCbuild/python20.wse @@ -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 -- 2.47.3