##// END OF EJS Templates
Make the test suite runnable without X11 connections....
Fernando Perez -
Show More
@@ -81,7 +81,9 b' def test_for(mod):'
81 81 """Test to see if mod is importable."""
82 82 try:
83 83 __import__(mod)
84 except ImportError:
84 except (ImportError, RuntimeError):
85 # GTK reports Runtime error if it can't be initialized even if it's
86 # importable.
85 87 return False
86 88 else:
87 89 return True
General Comments 0
You need to be logged in to leave comments. Login now