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

[2.7] bpo-30759: Fix test_multibytecodec_support#2545

Closed
vstinner wants to merge 1 commit into
python:2.7python/cpython:2.7from
vstinner:list_cases27Copy head branch name to clipboard
Closed

[2.7] bpo-30759: Fix test_multibytecodec_support#2545
vstinner wants to merge 1 commit into
python:2.7python/cpython:2.7from
vstinner:list_cases27Copy head branch name to clipboard

Conversation

@vstinner

@vstinner vstinner commented Jul 3, 2017

Copy link
Copy Markdown
Member

TestBase_Mapping doesn't inherit from unittest.TestCase anymore, but
object, since it's not a real test case but only a base base. All
child classes already inherit from unittest.TestCase.

TestBase_Mapping doesn't inherit from unittest.TestCase anymore, but
object, since it's not a real test case but only a base base. All
child classes already inherit from unittest.TestCase.
@vstinner

vstinner commented Jul 3, 2017

Copy link
Copy Markdown
Member Author

Example: test_codecmaps_tw still runs the same 6 tests with this change.

haypo@selma$ ./python -m test -v test_codecmaps_tw
...
test_errorhandle (test.test_codecmaps_tw.TestBIG5Map) ... ok
test_mapping_file (test.test_codecmaps_tw.TestBIG5Map) ... ok
test_mapping_supplemental (test.test_codecmaps_tw.TestBIG5Map) ... ok
test_errorhandle (test.test_codecmaps_tw.TestCP950Map) ... ok
test_mapping_file (test.test_codecmaps_tw.TestCP950Map) ... ok
test_mapping_supplemental (test.test_codecmaps_tw.TestCP950Map) ... ok
...
Ran 6 tests in 2.363s

@serhiy-storchaka

Copy link
Copy Markdown
Member

Yes, this works.

But maybe make the tests more similar to 3.x and just rename test_multibytecodec_support.py to multibytecodec_support.py.

@serhiy-storchaka

Copy link
Copy Markdown
Member

See 75d9aca.

@serhiy-storchaka

Copy link
Copy Markdown
Member

Backported in #2548.

@vstinner

vstinner commented Jul 3, 2017

Copy link
Copy Markdown
Member Author

Abandonned in favor of @serhiy-storchaka PR #2548.

@vstinner vstinner closed this Jul 3, 2017
@vstinner vstinner deleted the list_cases27 branch July 3, 2017 20:19
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.