Skip to content
Snippets Groups Projects
Commit 34db3b00 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

TEST: Try and avoid conflicts in parallel tests in docker

parent 3a7dadd8
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ import os
import gc
import os.path as op
import sys
import time
import shutil
import tempfile
import pytest
......@@ -41,8 +42,22 @@ def test_haveGui():
import wx
p = fslplatform.Platform()
app = wx.App()
p = fslplatform.Platform()
# We can get weird conflicts w.r.t. access to
# the display when multiple tests are running
# simultaneously within docker on the same
# machine.
app = None
for _ in range(5):
try:
app = wx.App()
break
except Exception:
time.sleep(1)
if app is None:
assert False
frame = wx.Frame(None)
passed = [False]
frame.Show()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment