Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christoph Arthofer
fslpy
Commits
4685b78a
Commit
4685b78a
authored
Jan 27, 2020
by
Paul McCarthy
🚵
Browse files
TEST: wx.GetApp() called through platform.haveGui) is returning an
old App object, and causing test to fail.
parent
69de2dd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_platform.py
View file @
4685b78a
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment