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

TEST: wx.GetApp() called through platform.haveGui) is returning an

old App object, and causing test to fail.
parent 8c832aad
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@
import os
import gc
import os.path as op
import sys
import shutil
......@@ -67,6 +68,8 @@ def test_haveGui():
@pytest.mark.wxtest
def test_wxatts():
gc.collect()
with mock.patch.dict('sys.modules', wx=None):
p = fslplatform.Platform()
assert not p.canHaveGui
......
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