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.
This commit is contained in:
Stefan Brüns
2020-10-02 15:18:52 +02:00
parent 62cda454f1
commit 36686a8c75

View File

@@ -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")