Skip to content

Commit 1c8ac9f

Browse files
committed
tests passing windows
1 parent 9adfa31 commit 1c8ac9f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

roboticstoolbox/backend/PyPlot/PyPlot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def close(self):
177177

178178
super().close()
179179

180-
signal.setitimer(signal.ITIMER_REAL, 0)
180+
# signal.setitimer(signal.ITIMER_REAL, 0)
181181
plt.close(self.fig)
182182

183183
#
@@ -257,12 +257,12 @@ def remove(self):
257257
super().remove()
258258

259259
def hold(self): # pragma: no cover
260-
signal.setitimer(signal.ITIMER_REAL, 0)
260+
# signal.setitimer(signal.ITIMER_REAL, 0)
261261
plt.ioff()
262262

263263
try:
264264
plt.show()
265-
except(AttributeError):
265+
except AttributeError:
266266
pass
267267

268268
#

roboticstoolbox/backend/PyPlot/PyPlot2.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from roboticstoolbox.backend.Connector import Connector
88
import matplotlib
99
import matplotlib.pyplot as plt
10-
import signal
10+
# import signal
1111
from roboticstoolbox.backend.PyPlot.RobotPlot2 import RobotPlot2
1212
from roboticstoolbox.backend.PyPlot.EllipsePlot import EllipsePlot
1313

@@ -66,8 +66,8 @@ def launch(self, name=None, limits=None):
6666
plt.show()
6767

6868
# Set the signal handler and a 0.1 second plot updater
69-
signal.signal(signal.SIGALRM, self._plot_handler)
70-
signal.setitimer(signal.ITIMER_REAL, 0.1, 0.1)
69+
# signal.signal(signal.SIGALRM, self._plot_handler)
70+
# signal.setitimer(signal.ITIMER_REAL, 0.1, 0.1)
7171

7272
def step(self, dt=50):
7373
'''
@@ -121,7 +121,7 @@ def close(self):
121121

122122
super().close()
123123

124-
signal.setitimer(signal.ITIMER_REAL, 0)
124+
# signal.setitimer(signal.ITIMER_REAL, 0)
125125
plt.close(self.fig)
126126

127127
#
@@ -161,7 +161,7 @@ def remove(self):
161161
super().remove()
162162

163163
def hold(self): # pragma: no cover
164-
signal.setitimer(signal.ITIMER_REAL, 0)
164+
# signal.setitimer(signal.ITIMER_REAL, 0)
165165
plt.ioff()
166166
plt.show()
167167

0 commit comments

Comments
 (0)