Skip to content

Commit

Permalink
FIX: Skip offscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Nov 27, 2017
1 parent e56fffb commit 77965b4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions surfer/tests/test_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ def _set_backend(backend=None):
@requires_fsaverage
def test_offscreen():
"""Test offscreen rendering."""
if sys.platform == 'darwin' and os.getenv('TRAVIS', 'false') == 'true':
raise SkipTest('Offscreen Travis tests fail on OSX')
if os.getenv('TRAVIS', 'false') == 'true':
if sys.platform == 'darwin':
raise SkipTest('Offscreen Travis tests fail on OSX')
if sys.version[0] == '3':
raise SkipTest('Offscrees Travis tests fail on Py3k')
_set_backend()
brain = Brain(*std_args, offscreen=True)
# Sometimes the first screenshot is rendered with a different
Expand Down

0 comments on commit 77965b4

Please sign in to comment.