Skip to content

bpo-30523: Add --list-cases unittest#2243

Merged
vstinner merged 3 commits intopython:masterfrom
mlouielu:add_list_cases_unittest
Jun 16, 2017
Merged

bpo-30523: Add --list-cases unittest#2243
vstinner merged 3 commits intopython:masterfrom
mlouielu:add_list_cases_unittest

Conversation

@mlouielu
Copy link
Copy Markdown
Contributor

No description provided.

@mlouielu mlouielu force-pushed the add_list_cases_unittest branch from c79e9ea to 10dd852 Compare June 16, 2017 10:38
Copy link
Copy Markdown
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove also my comment "# Any code which causes a crash" from test_matchfile(). This comment is a copy/paste mistake from test_crashed().

Comment thread Lib/test/test_regrtest.py Outdated
pass
def test_method2(self):
pass
def test_method3(self):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 methods are enough. Remove test_method3 & test_method4 please.

Comment thread Lib/test/test_regrtest.py Outdated
'%s.Tests.test_method3' % testname,
'%s.Tests.test_method4' % testname]
output = self.run_tests('--list-cases', testname)
self.assertEqual(output.rstrip().splitlines(), all_methods)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is .rstrip() useful here?

Comment thread Lib/test/test_regrtest.py Outdated

def test_list_cases(self):
# test --list-cases
# TODO: Add doctest testcase
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the TODO, I would prefer to open a new bpo for that.

@vstinner vstinner merged commit b0c58d3 into python:master Jun 16, 2017
@vstinner
Copy link
Copy Markdown
Member

Thanks @mlouielu! I now feel more confortable with an unit test ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants