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

Use ZMQ sockets to communicate results of pytest run #114

Merged
merged 6 commits into from
Mar 3, 2018

Conversation

jitseniesen
Copy link
Member

Communicating the results of the pytest run via stdout, as is done now, is fragile. The tests itself may also write to stdout and stderr and it was not clear to me how to block this off completely in complicated cases such as the Spyder tests, where the Qt C library writes to stdout. Communicating over a socket, as implemented here, seems to be more robust. It's also (arguably) cleaner.

Fixes #112.

@jitseniesen jitseniesen added this to the v0.3.1 milestone Feb 27, 2018
@ccordoba12
Copy link
Member

You should add pyzmq to setup.py, just in case Spyder stops using it someday.

setup.py Outdated
@@ -37,7 +37,7 @@ def get_package_data(name, extlist):


# Requirements
REQUIREMENTS = ['lxml', 'spyder>=3']
REQUIREMENTS = ['lxml', 'spyder>=3', 'zmq']
Copy link
Member

Choose a reason for hiding this comment

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

The Python package is called pyzmq, not zmq

@@ -25,6 +25,7 @@ requirements:
- lxml
- python
- spyder >=3
- zmq
Copy link
Member

Choose a reason for hiding this comment

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

pyzmq

circle.yml Outdated
@@ -13,14 +13,14 @@ machine:
COVERALLS_REPO_TOKEN: c5Qt1n27dLFCAIESYVkuCmVpUU8doney1
# Environment variables used by astropy helpers
TRAVIS_OS_NAME: "linux"
CONDA_DEPENDENCIES: "lxml mock nose pytest"
CONDA_DEPENDENCIES: "lxml mock nose pytest zmq"
Copy link
Member

Choose a reason for hiding this comment

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

pyzmq

appveyor.yml Outdated
@@ -18,7 +18,7 @@ environment:
PYTHON_ARCH: "64" # needs to be set for CMD_IN_ENV to succeed. If a mix
# of 32 bit and 64 bit builds are needed, move this
# to the matrix section.
CONDA_DEPENDENCIES: "lxml mock nose pytest spyder"
CONDA_DEPENDENCIES: "lxml mock nose pytest spyder zmq"
Copy link
Member

Choose a reason for hiding this comment

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

pyzmq

.travis.yml Outdated
@@ -17,7 +17,7 @@ env:
- TEST_CI="True"
- TEST_CI_APP="True"
# Environment variables used by astropy helpers
- CONDA_DEPENDENCIES="lxml mock nose pytest spyder"
- CONDA_DEPENDENCIES="lxml mock nose pytest spyder zmq"
Copy link
Member

Choose a reason for hiding this comment

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

pyzmq

@jitseniesen
Copy link
Member Author

@ccordoba12 Thanks! Note to self: Always test or suffer embarrassment.

@ccordoba12
Copy link
Member

Always test or suffer embarrassment.

Jeje, no worries. I'd be drown in brown paper bags for every time I've embarrassed myself in Spyder :-)

@jitseniesen jitseniesen merged commit 1b6b9ec into spyder-ide:master Mar 3, 2018
@jitseniesen jitseniesen deleted the usesocket branch May 30, 2018 12:00
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.

2 participants