Disable mayavi and iwidgets tests on Travis

This commit is contained in:
Matteo Giantomassi 2017-10-16 11:40:07 +02:00
parent 7603226643
commit 43db879420
2 changed files with 7 additions and 0 deletions

View File

@ -318,6 +318,8 @@ class AbipyTest(PymatgenTest):
"""
True if Mayavi is available. Set also offscreen to True
"""
# Disable mayavi for the time being.
return False
# This to run mayavi tests only on Travis
if not os.environ.get("TRAVIS"): return False
try:
@ -372,6 +374,8 @@ class AbipyTest(PymatgenTest):
@staticmethod
def has_ipywidgets():
"""Return True if ipywidgets is available."""
# Disable widget tests on TRAVIS
if os.environ.get("TRAVIS"): return False
try:
import ipywidgets as ipw
return True

View File

@ -2,6 +2,7 @@
"""Test abipy command line scripts."""
from __future__ import print_function, division, unicode_literals, absolute_import
import sys
import os
import abipy.data as abidata
import abipy.flowtk as flowtk
@ -34,6 +35,8 @@ class ScriptTest(AbipyTest):
loglevel = "--loglevel=ERROR"
verbose = "-vv"
# Dont raise an exception if anything is printed to stderr
#if sys.version_info[0] <= 2 else str(s)
expect_stderr = True # else tests fail due to warnings and deprecation messages
def get_env(self, check_help_version=True):