]> granicus.if.org Git - python/commitdiff
removing map and lambda usage, so the test is similar to py3k's branch one
authorTarek Ziadé <ziade.tarek@gmail.com>
Sun, 22 Feb 2009 20:11:46 +0000 (20:11 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Sun, 22 Feb 2009 20:11:46 +0000 (20:11 +0000)
Lib/distutils/tests/test_text_file.py

index 8f4f7e83c0b19f98c4814a9f8b1833b729b2e4cf..00f083a1308c980858ac02d3b1ed765286426ca2 100644 (file)
@@ -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",