Skip to content

Commit fbac4ee

Browse files
committed
fix implementation of get_display()
1 parent 2383177 commit fbac4ee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nipype/utils/config.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def _mock():
309309
ndisp = sysdisplay.split(':')[-1].split('.')[0]
310310
Xvfb = namedtuple('Xvfb', ['new_display', 'stop'])
311311
self._display = Xvfb(int(ndisp), _mock)
312-
return sysdisplay
312+
return self.get_display()
313313
else:
314314
if 'darwin' in sys.platform:
315315
raise RuntimeError(
@@ -336,8 +336,7 @@ def _mock():
336336
if not hasattr(self._display, 'new_display'):
337337
setattr(self._display, 'new_display',
338338
self._display.vdisplay_num)
339-
340-
return ':%d' % self._display.new_display
339+
return self.get_display()
341340

342341
def stop_display(self):
343342
"""Closes the display if started"""

0 commit comments

Comments
 (0)