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

skip test on unix when x11 not available #3883

Merged
merged 3 commits into from Aug 16, 2013
Merged

Conversation

ivanov
Copy link
Member

@ivanov ivanov commented Aug 3, 2013

If you just use DISPLAY= iptest then Qt console tests were failing with a
generic : cannot connect to X server

note that pylab_not_importable appears to not be enough to catch if
we're running X. I'm able to import pylab, and it's only %%matplotlib
magic that causes these tests to die
@@ -314,6 +328,17 @@ def module_not_available(module):
skip_if_not_osx = skipif(sys.platform != 'darwin',
"This test only runs under OSX")


_x11_skip_cond = (sys.platform not in ('darwin', 'win32') and
os.environ['DISPLAY']=='')
Copy link
Member

Choose a reason for hiding this comment

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

Use getor this fails on system where DISPLAY is not defined like Travis. We do want to break master but not intentionally.

@ivanov
Copy link
Member Author

ivanov commented Aug 11, 2013

thanks @Carreau for taking a look, fixed that

Carreau added a commit that referenced this pull request Aug 16, 2013
skip test on unix when x11 not available

If you just use DISPLAY= iptest then Qt console tests were failing with a
generic : cannot connect to X server
@Carreau Carreau merged commit 88d6c02 into ipython:master Aug 16, 2013
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
skip test on unix when x11 not available

If you just use DISPLAY= iptest then Qt console tests were failing with a
generic : cannot connect to X server
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.

None yet

2 participants