From 36686a8c75cc6cc0fbdb611ef9613eefcfde061d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= Date: Fri, 2 Oct 2020 15:18:52 +0200 Subject: [PATCH] Pass data as bytes in UIActionSimulator::Test The Test parameter no longer is a wxString but a const char*, as the method only handles plain ASCII. --- unittests/test_uiaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/test_uiaction.py b/unittests/test_uiaction.py index 0fa79ca1..f5584e99 100644 --- a/unittests/test_uiaction.py +++ b/unittests/test_uiaction.py @@ -186,7 +186,7 @@ class uiaction_KeyboardTests(wtc.WidgetTestCase): @unittest.skipIf(sys.platform == 'darwin', 'wx.UIActionSimulator.Text needs work...') def test_uiactionKeyboardText(self): uia = wx.UIActionSimulator() - uia.Text("This is a test") + uia.Text(b"This is a test") self.waitFor(WAIT*2) self.assertEqual(self.tc.GetValue(), "This is a test")