diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-02-22 20:11:46 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-02-22 20:11:46 (GMT) |
commit | 28bba74b7f059debb7272dec87bdfb3544551cd6 (patch) | |
tree | 25bd432e8d7811d4deb936cc2db528c4b020b50a /Lib/distutils/tests/test_text_file.py | |
parent | 90b7d56d91ed4f4b051a62794bb08bbbe696263f (diff) | |
download | cpython-28bba74b7f059debb7272dec87bdfb3544551cd6.zip cpython-28bba74b7f059debb7272dec87bdfb3544551cd6.tar.gz cpython-28bba74b7f059debb7272dec87bdfb3544551cd6.tar.bz2 |
removing map and lambda usage, so the test is similar to py3k's branch one
Diffstat (limited to 'Lib/distutils/tests/test_text_file.py')
-rw-r--r-- | Lib/distutils/tests/test_text_file.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_text_file.py b/Lib/distutils/tests/test_text_file.py index 8f4f7e8..00f083a 100644 --- a/Lib/distutils/tests/test_text_file.py +++ b/Lib/distutils/tests/test_text_file.py @@ -18,8 +18,9 @@ class TextFileTestCase(support.TempdirManager, unittest.TestCase): # so they are really called by the buildbots # result 1: no fancy options - result1 = map(lambda x: x + "\n", - TEST_DATA.split("\n")[0:-1]) + result1 = ['# test file\n', '\n', 'line 3 \\\n', + '# intervening comment\n', + ' continues on next line\n'] # result 2: just strip comments result2 = ["\n", |