Show More
@@ -17,11 +17,11 b' from IPython.lib import irunner' | |||
|
17 | 17 | from IPython.testing import decorators |
|
18 | 18 | |
|
19 | 19 | def pylab_not_importable(): |
|
20 |
"""Test if importing pylab fails |
|
|
20 | """Test if importing pylab fails. (For example, when having no display)""" | |
|
21 | 21 | try: |
|
22 | 22 | import pylab |
|
23 | 23 | return False |
|
24 |
except |
|
|
24 | except: | |
|
25 | 25 | return True |
|
26 | 26 | |
|
27 | 27 | # Testing code begins |
General Comments 0
You need to be logged in to leave comments.
Login now