From f1bc13a8418004075f6d59cb23eb96f58afc57f5 Mon Sep 17 00:00:00 2001 From: Samuel Dunn Date: Mon, 26 Jun 2017 17:28:50 -0700 Subject: [PATCH] Ensure wx.Config related enums are present for SIP Also adds unittests to ensure they remain present in Phoenix. --- etg/config.py | 1 + unittests/test_config.py | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/etg/config.py b/etg/config.py index c040f567..e045efc8 100644 --- a/etg/config.py +++ b/etg/config.py @@ -22,6 +22,7 @@ DOCSTRING = "" ITEMS = [ 'wxConfigBase', 'wxFileConfig', 'wxConfigPathChanger', + 'interface_2wx_2config_8h.xml' ] #--------------------------------------------------------------------------- diff --git a/unittests/test_config.py b/unittests/test_config.py index a026f199..c2a05320 100644 --- a/unittests/test_config.py +++ b/unittests/test_config.py @@ -188,6 +188,14 @@ class ConfigTests(wtc.WidgetTestCase): if os.path.exists(name): os.remove(name) + def test_ConfigEnums(self): + # Test for presence of config enums + wx.CONFIG_USE_LOCAL_FILE + wx.CONFIG_USE_GLOBAL_FILE + wx.CONFIG_USE_RELATIVE_PATH + wx.CONFIG_USE_NO_ESCAPE_CHARACTERS + wx.CONFIG_USE_SUBDIR + #---------------------------------------------------------------------------