##// 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 """Test to see if mod is importable."""
81 """Test to see if mod is importable."""
82 try:
82 try:
83 __import__(mod)
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 return False
87 return False
86 else:
88 else:
87 return True
89 return True
General Comments 0
You need to be logged in to leave comments. Login now