diff options
author | Neil <nyamatongwe@gmail.com> | 2013-07-22 18:50:35 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-07-22 18:50:35 +1000 |
commit | 47792a5650ed6c70b05ccf1c33cce015d032bd04 (patch) | |
tree | 372b58b5e348e1150d1be12e82466f24fd56cea2 | |
parent | 746e6fee4485636e4ed3e82a2aa076b009c2e3fc (diff) | |
download | scintilla-mirror-47792a5650ed6c70b05ccf1c33cce015d032bd04.tar.gz |
There were occsional failures in clipboard tests so add some DoEvents calls
to allow clipboard status to be propogated between windows.
Seems to avoid the failures.
-rw-r--r-- | test/simpleTests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/simpleTests.py b/test/simpleTests.py index ed55a67f9..4ce6e39ea 100644 --- a/test/simpleTests.py +++ b/test/simpleTests.py @@ -490,6 +490,7 @@ class TestSimple(unittest.TestCase): self.ed.AddText(5, b"a1b2c") self.ed.SetSel(1,3) self.ed.Cut() + self.xite.DoEvents() self.assertEquals(self.ed.CanPaste(), 1) self.ed.SetSel(0, 0) self.ed.Paste() @@ -504,6 +505,7 @@ class TestSimple(unittest.TestCase): self.assertEquals(self.ed.Contents(), b"1c") def testCopyAllowLine(self): + self.xite.DoEvents() lineEndType = self.ed.EOLMode self.ed.EOLMode = self.ed.SC_EOL_LF self.ed.AddText(5, b"a1\nb2") |