From c648efc8fcd9ec61f30b491614fa6eae9e98e847 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 2 Dec 2013 22:54:00 +0100 Subject: [PATCH] bugfix for tests on server systems without display (TclError: no display name and no $DISPLAY environment variable) --- timeside/grapher/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 """ -- 2.39.5