From 221aa55738f0bdc6893f43795c2563e9d267083f Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Mon, 27 Jan 2020 20:57:34 +0000
Subject: [PATCH] TEST: wx.GetApp() called through platform.haveGui) is
 returning an old App object, and causing test to fail.

---
 tests/test_platform.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/test_platform.py b/tests/test_platform.py
index 6dcbfaeea..05321fb43 100644
--- a/tests/test_platform.py
+++ b/tests/test_platform.py
@@ -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
-- 
GitLab