mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
removing map and lambda usage, so the test is similar to py3k's branch one
This commit is contained in:
parent
90b7d56d91
commit
28bba74b7f
1 changed files with 3 additions and 2 deletions
|
@ -18,8 +18,9 @@ class TextFileTestCase(support.TempdirManager, unittest.TestCase):
|
||||||
# so they are really called by the buildbots
|
# so they are really called by the buildbots
|
||||||
|
|
||||||
# result 1: no fancy options
|
# result 1: no fancy options
|
||||||
result1 = map(lambda x: x + "\n",
|
result1 = ['# test file\n', '\n', 'line 3 \\\n',
|
||||||
TEST_DATA.split("\n")[0:-1])
|
'# intervening comment\n',
|
||||||
|
' continues on next line\n']
|
||||||
|
|
||||||
# result 2: just strip comments
|
# result 2: just strip comments
|
||||||
result2 = ["\n",
|
result2 = ["\n",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue