Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
vstinner merged 3 commits into
python:masterpython/cpython:masterfrom
mlouielu:add_list_cases_unittestmlouielu/cpython:add_list_cases_unittestCopy head branch name to clipboard
Jun 16, 2017
Merged

bpo-30523: Add --list-cases unittest#2243
vstinner merged 3 commits into
python:masterpython/cpython:masterfrom
mlouielu:add_list_cases_unittestmlouielu/cpython:add_list_cases_unittestCopy head branch name to clipboard

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

@vstinner vstinner left a comment

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 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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.