Skip to content

Commit cc5ccd3

Browse files
Improve utests on lex_detect
1 parent c64bf97 commit cc5ccd3

7 files changed

Lines changed: 10 additions & 10 deletions

File tree

utest/application/test_updatenotifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def test_check_for_updates_is_false(self):
218218
self.assertFalse(self._callback_called)
219219
# Uncomment next lines if you want to see the app
220220
wx.CallLater(5000, self.app.ExitMainLoop)
221-
self.app.MainLoop()
221+
# self.app.MainLoop()
222222

223223
def test_no_update_found(self):
224224
with mock.patch.dict(os.environ, {'RIDESETTINGS': self.app.settings.fake_cfg}):

utest/editor/test_customsourceeditor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def test_other_calls_python_editor(self):
284284
self.editor.Expand(800, False, True, 0, 1)
285285
self.editor.Expand(800, True, True, 2, 1)
286286
# Uncomment next lines if you want to see the app
287-
self.app.MainLoop()
287+
# self.app.MainLoop()
288288

289289

290290
if __name__ == '__main__':

utest/editor/test_flowsizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def setUp(self):
3232

3333
def tearDown(self):
3434
wx.CallLater(5000, self.app.ExitMainLoop)
35-
self.app.MainLoop() # With this here, there is no Segmentation fault
35+
# self.app.MainLoop() # With this here, there is no Segmentation fault
3636
# wx.CallAfter(wx.Exit)
3737
self.app.Destroy()
3838
self.app = None

utest/editor/test_texteditor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ def test_miscellanous(self):
632632
"""
633633
# Uncomment next lines if you want to see the app
634634
wx.CallLater(5000, self.app.ExitMainLoop)
635-
self.app.MainLoop()
635+
# self.app.MainLoop()
636636

637637
class TestLanguageFunctions(unittest.TestCase):
638638

utest/editor/test_z_kweditor_plugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def test_show(self):
336336
assert show # is not None
337337
# Uncomment next lines if you want to see the app
338338
wx.CallLater(9000, self.app.ExitMainLoop)
339-
self.app.MainLoop()
339+
# self.app.MainLoop()
340340

341341
@pytest.mark.skipif(sys.platform=='win32', reason="On Windows causes: Windows fatal exception: access violation")
342342
def test_on_comment_cells(self):
@@ -351,7 +351,7 @@ def test_on_comment_cells(self):
351351
data = self._grid.kweditor.get_selected_content()
352352
print(f"DEBUG: After Sharp Comment Data Cell is {data}")
353353
wx.CallLater(5000, self.app.ExitMainLoop)
354-
self.app.MainLoop()
354+
# self.app.MainLoop()
355355

356356

357357
""" Clipboard tests moved from test_grid.py to here """
@@ -418,7 +418,7 @@ def test_cut_block(self):
418418
self._cut_block_and_verify((0, 0, 2, 2), DATA, [])
419419
# Uncomment next lines if you want to see the app
420420
wx.CallLater(5000, self.app.ExitMainLoop)
421-
self.app.MainLoop()
421+
# self.app.MainLoop()
422422

423423
def _cut_block_and_verify(self, block, exp_clipboard, exp_grid):
424424
self._cut_block(block)

utest/ui/test_mainframe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,15 @@ class TestMainFrame(_BaseDialogTest):
144144
def test_show_mainframe(self):
145145
self.frame.Show()
146146
wx.CallLater(2000, self.app.ExitMainLoop)
147-
self.app.MainLoop()
147+
# self.app.MainLoop()
148148

149149
def test_show_plugins_manager(self):
150150
self.frame.Show()
151151
plugins = self.loader.plugins
152152
self.frame._plugin_manager.show(plugins)
153153
wx.CallLater(5000, self.app.ExitMainLoop)
154154
wx.CallLater(4000, self.frame._plugin_manager._panel.Close)
155-
self.app.MainLoop()
155+
# self.app.MainLoop()
156156

157157
def test_start_external_app(self):
158158
import sys, subprocess

utest/widgets/test_htmlwnd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def setUp(self):
3030

3131
def tearDown(self):
3232
wx.CallLater(5000, self.app.ExitMainLoop)
33-
self.app.MainLoop() # With this here, there is no Segmentation fault
33+
# self.app.MainLoop() # With this here, there is no Segmentation fault
3434
# wx.CallAfter(wx.Exit)
3535
self.app.Destroy()
3636
self.app = None

0 commit comments

Comments
 (0)