Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-32136: Separate embedding tests from C API tests #4567

Merged

Conversation

ncoghlan
Copy link
Contributor

@ncoghlan ncoghlan commented Nov 26, 2017

Some parts of the C API are only relevant to larger
applications embedding CPython as a runtime engine.

The helpers to test those APIs are already separated
out into Programs/_testembed.c, this update moves
the associated test cases out into their own dedicated
test file.

https://bugs.python.org/issue32136

Some parts of the C API are only relevant to larger
applications embedding CPython as a runtime engine.

The helpers to test those APIs are already separated
out into Programs/_testembed.c, this update moves
the associated test cases out into their own dedicated
test file.
import re
import subprocess
import sys

Copy link
Member

Choose a reason for hiding this comment

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

Would you mind to add an empty line for PEP8, please? :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added!

@@ -420,190 +420,6 @@ def test(self):
self.assertEqual(_testcapi.argparsing("Hello", "World"), 1)


Copy link
Member

Choose a reason for hiding this comment

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

pyflakes found 2 unused imports:

Lib/test/test_capi.py:4:1: F401 'collections.namedtuple' imported but unused
Lib/test/test_capi.py:7:1: F401 'platform' imported but unused

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both removed now.

Copy link
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.

LGTM.

@ncoghlan ncoghlan merged commit 39f0bb5 into python:master Nov 27, 2017
@ncoghlan ncoghlan deleted the issue-32136-refactoring-embedding-tests branch March 30, 2018 07:52
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.

4 participants