mirror of https://github.com/abinit/abipy.git
Disable mayavi and iwidgets tests on Travis
This commit is contained in:
parent
7603226643
commit
43db879420
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
# Don’t 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):
|
||||
|
|
Loading…
Reference in New Issue