From: Guillaume Pellerin Date: Mon, 2 Dec 2013 21:54:00 +0000 (+0100) Subject: bugfix for tests on server systems without display (TclError: no display name and... X-Git-Tag: 0.5.2~16 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c648efc8fcd9ec61f30b491614fa6eae9e98e847;p=timeside.git bugfix for tests on server systems without display (TclError: no display name and no $DISPLAY environment variable) --- diff --git a/timeside/grapher/utils.py b/timeside/grapher/utils.py index b262650..d09aeb5 100644 --- a/timeside/grapher/utils.py +++ b/timeside/grapher/utils.py @@ -113,11 +113,11 @@ def smooth(x, window_len=10, window='hanning'): >>> x = np.sin(t)+np.random.randn(len(t))*0.1 >>> y = smooth(x) >>> import matplotlib.pyplot as plt - >>> plt.plot(x) # doctest: +ELLIPSIS + >>> plt.plot(x) # doctest: +SKIP [] - >>> plt.plot(y) # doctest: +ELLIPSIS + >>> plt.plot(y) # doctest: +SKIP [] - >>> plt.legend(['Source signal', 'Smoothed signal']) # doctest: +ELLIPSIS + >>> plt.legend(['Source signal', 'Smoothed signal']) # doctest: +SKIP >>> plt.show() # doctest: +SKIP """