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

TEST: isWidgetAlive no longer exists

parent b2302b97
No related branches found
No related tags found
No related merge requests found
......@@ -208,33 +208,3 @@ def test_detect_ssh():
p = fslplatform.Platform()
assert not p.inSSHSession
assert not p.inVNCSession
@pytest.mark.wxtest
def test_IsWidgetAlive():
import wx
passed = [False]
app = wx.App()
frame = wx.Frame(None)
btn = wx.Button(frame)
frame.Show()
def runtest():
try:
passed[0] = fslplatform.isWidgetAlive(btn)
btn.Destroy()
passed[0] = passed[0] and (not fslplatform.isWidgetAlive(btn))
finally:
frame.Destroy()
app.ExitMainLoop()
wx.CallLater(500, runtest)
app.MainLoop()
assert passed[0]
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