[Python-checkins] r69878 - python/trunk/Lib/distutils/tests/test_text_file.py

tarek.ziade python-checkins at python.org
Sun Feb 22 21:11:46 CET 2009


Author: tarek.ziade
Date: Sun Feb 22 21:11:46 2009
New Revision: 69878
Log:
removing map and lambda usage, so the test is similar to py3k's branch one
Modified:
 python/trunk/Lib/distutils/tests/test_text_file.py
Modified: python/trunk/Lib/distutils/tests/test_text_file.py
==============================================================================
--- python/trunk/Lib/distutils/tests/test_text_file.py	(original)
+++ python/trunk/Lib/distutils/tests/test_text_file.py	Sun Feb 22 21:11:46 2009
@@ -18,8 +18,9 @@
 # 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",


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /